Re: jsonb existence queries are misimplemented by jsonb_ops

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: jsonb existence queries are misimplemented by jsonb_ops
Дата
Msg-id CAM3SWZTsvo-7vPieJCuWRHB6s7rzs6eVHEg5tuMBcVC4M4ixxQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: jsonb existence queries are misimplemented by jsonb_ops  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: jsonb existence queries are misimplemented by jsonb_ops
Re: jsonb existence queries are misimplemented by jsonb_ops
Список pgsql-hackers
On Wed, May 7, 2014 at 1:47 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> No, wait, containment *doesn't* look into sub-objects:
>
> regression=# select * from j where f1 @> '{"foo": {"bar": "baz"}}';
>            f1
> -------------------------
>  {"foo": {"bar": "baz"}}
> (1 row)
>
> regression=# select * from j where f1 @> '{"bar": "baz"}';
>  f1
> ----
> (0 rows)


Yes it does. It's just not intended to work like that. You have to
"give a path" to what you're looking for.

-- 
Peter Geoghegan



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: proposal: Set effective_cache_size to greater of .conf value, shared_buffers
Следующее
От: Petr Jelinek
Дата:
Сообщение: Re: bgworker crashed or not?