From: | Thom Brown <thom(at)linux(dot)com> |
---|---|
To: | Andres Freund <andres(at)2ndquadrant(dot)com> |
Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, Teodor Sigaev <teodor(at)sigaev(dot)ru>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: jsonb and nested hstore |
Date: | 2014-02-28 12:19:32 |
Message-ID: | CAA-aLv7OXt9f6wjgo1EH2sj5vNv3gx_bf6+1zdnAw4ZZuF6e_g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 28 February 2014 08:12, Andres Freund <andres(at)2ndquadrant(dot)com> wrote:
> On 2014-02-27 15:06:33 -0500, Andrew Dunstan wrote:
> > You realize that this API dates from 9.3 and has been used in numerous
> > extensions, right? So the names are pretty well fixed, for good or ill.
>
> Sure. Doesn't prevent adding a couple more comments tho. I've only
> noticed this because I opened the header as a reference when reading
> your patch. Anyway, do something based on that feedback or not, your
> choice ;)
>
Can I ask why I can do this:
SELECT review %> 'product'->'title' as product_title
FROM rating;
But I can't do this:
SELECT review->'product'->'title' as product_title
FROM rating;
ERROR: operator does not exist: hstore -> hstore
LINE 1: explain select review -> 'product'::hstore ->'title' as prod...
Yet I can do this:
SELECT review::json->'product'->'title' as product_title
FROM rating;
Yours oblivious,
--
Thom
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2014-02-28 12:45:58 | Re: Hot standby doesn't come up on some situation. |
Previous Message | Fabien COELHO | 2014-02-28 11:10:31 | Re: pgbench help message fix |