electric icon indicating copy to clipboard operation
electric copied to clipboard

Support json/jsonb operators in where clauses

Open robacourt opened this issue 9 months ago • 1 comments

Currently json/jsonb operators such as ->> are not supported in where clauses, and common operators such as = are not supported on json/jsonb columns or values.

This has been requested by Edward at Herd Labs

robacourt avatar Apr 03 '25 09:04 robacourt

This would be very useful to me as well. I'm writing a library to handle offline writes with conflict resolution for electric and I store hybrid logical clocks in jsonb columns. I will likely want to use these in my where clauses.

evelant avatar Apr 08 '25 13:04 evelant

This is also very important to us. We use nested query quiet a lot, so it would be very useful if some or all of the json queries are supported.

For us the most used are:

->
->>
#>
@>
checking using "any" etc.

https://www.postgresql.org/docs/current/functions-json.html

omidb avatar Jun 08 '25 19:06 omidb