Re: jsonb and nested hstore - Mailing list pgsql-hackers

From Oleg Bartunov
Subject Re: jsonb and nested hstore
Date
Msg-id CAF4Au4wzY0TtLkyxqF1c_chxhGrXTN-i7aX1kwchP8_jjGTn_A@mail.gmail.com
Whole thread Raw
In response to Re: jsonb and nested hstore  (Peter Geoghegan <pg@heroku.com>)
List pgsql-hackers
On Thu, Mar 13, 2014 at 12:10 AM, Peter Geoghegan <pg@heroku.com> wrote:
> On Wed, Mar 12, 2014 at 11:57 AM, Oleg Bartunov <obartunov@gmail.com> wrote:
>> Also, GiST index is faster for create/update operations. I really hope we will
>> improve jsonb indexing in the next one-two releases. For now I'd suggest people
>> index expressional indexes to index just interesting keys or use GiST.
>
> When do you ever want to index non-interesting keys?

Regular user may just index all keys.

I mean, that json can contains keys, which are not searched, so it's
not needed to index them and save index size. We probably could
provide option in CREATE INDEX to specify what to index and what not
index, but it require planner to know that information.


>
> --
> Peter Geoghegan



pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Replication slots and footguns
Next
From: Andrew Dunstan
Date:
Subject: Re: jsonb and nested hstore