Re: Trouble matching a nested value in JSONB entries

2018-07-03 Thread Enrico Thierbach
Oleg, 1 | {"group_id": 1} 2 | {“group_id": 1} 3 | {“group_id": 2} 4 | {“group_id": 3} PS: Please note that I am currently at postgres 9.5. An update, if necessary, would be possible though. Upgrade, please ! I have only master 11beta2 right now: select * from qq where js @> '{"group_id"

Re: Trouble matching a nested value in JSONB entries

2018-07-03 Thread Oleg Bartunov
On Wed, Jun 20, 2018 at 10:06 PM, Enrico Thierbach wrote: > Hi list, > > I have some trouble matching a value in a JSONB object against multiple > potential matches. > > Lets say, I have a table with an id, and a metadata JSONB column, which > holds data like the following > > 1 | {"group_id": 1}

Trouble matching a nested value in JSONB entries

2018-06-20 Thread Enrico Thierbach
Hi list, I have some trouble matching a value in a JSONB object against multiple potential matches. Lets say, I have a table with an id, and a metadata JSONB column, which holds data like the following 1 | {"group_id": 1} 2 | {“group_id": 1} 3 | {“group_id": 2} 4 | {“group_i