Re: BUG #11207: empty path will segfault jsonb #> - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #11207: empty path will segfault jsonb #>
Date
Msg-id 26737.1408498113@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #11207: empty path will segfault jsonb #>  (David G Johnston <david.g.johnston@gmail.com>)
List pgsql-bugs
David G Johnston <david.g.johnston@gmail.com> writes:
> Not that we would necessarily want to duplicate hstore but "hstore ->
> text[]" seems similar enough to emulate if desired.

Actually, that operator is something completely different: it does N
independent lookups in the given hstore, and produces an array of the N
results.  Since hstore has no concept of nesting, there wouldn't be a
reason for it to have something that does what json's #> does.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #11207: empty path will segfault jsonb #>
Next
From: jbaum@cmcrc.com
Date:
Subject: BUG #11221: pg_restore unusable for expensive matviews