skip to Main Content

How can I query text & nums in Postgres jsonb using indexes?

I have a Postgres table named "base" with a jsonb field called "addresses" which stores multiple addresses for the same user. Here is the table structure: create table base(name text, addresses jsonb); insert into base(name, addresses) values('John', '[{"zip":"01431000","state":"SP","number":100,"street1":"Avenida Brasil","city_name":"São Paulo"},{"zip":"01310900","state":"SP","number":200,"street1":"Avenida…

VIEW QUESTION
Back To Top
Search