Searching jsonb array in PostgreSQL
问题 I'm trying to search a JSONB object in PostgreSQL 9.4. My question is similar to this thread. However my data structure is slightly different which is causing me problems. My data structure is like: [ {"id":1, "msg":"testing"} {"id":2, "msg":"tested"} {"id":3, "msg":"nothing"} ] and I want to search for matching objects in that array by msg (RegEx, LIKE, =, etc). To be more specific, I want all rows in the table where the JSONB field has an object with a "msg" that matches my request. The