The table Product has a jsonb column attributes in PostgreSQL 9.6 and contains the following entries for the attributes column.
Record 1:
[
{ "KEY1": "VALUE1", "KEY2": "VALUE2" },
{ "KEY1": "VALUE3", "KEY3": "VALUE4" },
]
Record 2:
[
{ "KEY1": "VALUE1", "KEY2": "VALUE2" },
{ "KEY3": "VALUE3", "KEY4": "VALUE4" },
]
How can we filter the records which contain the KEY4 key?
The jsonb operators given here doesn't provide the details for jsonb arrays.