PostgreSQL JSONB Query: Matching Values of Different Types (String, Integer) Using jsonb_path_exists and like_regex
I have a PostgreSQL database with a JSONB column named properties. I'm trying to create a query that matches all elements with a value inside properties that matches a certain value. Currently, I'm using a combination of jsonb_path_exists and like_regex,…