Re: [DOCS] JSONB operator clarification

2015-10-07 Thread Bruce Momjian
On Mon, Oct 5, 2015 at 08:19:26PM -0400, Bruce Momjian wrote: > In studying our JSONB operators, I was confused about what they do based > on the docs. I found that "contain within" means "contain the > path/value", i.e. it has to match the path from the top level, not just > anywhere inside the

[DOCS] JSONB operator clarification

2015-10-05 Thread Bruce Momjian
In studying our JSONB operators, I was confused about what they do based on the docs. I found that "contain within" means "contain the path/value", i.e. it has to match the path from the top level, not just anywhere inside the document: SELECT '{"a":1, "c" : {"b":2}}'::jsonb @> '{"a":1}':