title: ERROR: invalid input syntax for type timestamp: "end_time"
body: <p>New to postgresql and even newer to jsonb. I am trying to filter an array of objects:</p>
  
  <pre><code>[{"event_slug":"test_1","start_time":"2014-10-08","end_time":"2014-10-12"},
  {"event_slug":"test_2","start_time":"2013-06-24","end_time":"2013-07-02"},
  {"event_slug":"test_3","start_time":"2014-03-26","end_time":"2014-03-30"}]
  </code></pre>
  
  <p>My Query:</p>
  
  <pre><code>SELECT l.*
  FROM   locations l
       , jsonb_array_elements(l.events) e
  WHERE  l.events @&gt; '{"event_slug":"test_1"}'
  AND    e-&gt;&gt;'end_time'::timestamp &gt;= '2014-10-30 14:04:06 -0400'::timestamptz;
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code>ERROR:  invalid input syntax for type timestamp: "end_time"
  LINE 5: AND    e-&gt;&gt;'end_time'::timestamp &gt;= '2014-10-30 14:04:06 -04...
                     ^
  </code></pre>