Unable to remove property from JSON field
I'm trying to remove a JSON property. using the
-
syntax, but it's not working on a supabase instance. It works on other postgres instances, it just seems to be an issue with a supabase instance:
Which gives me this error:
[22P02] ERROR: invalid input syntax for type json Detail: Token "a" is invalid.
14 Replies
"Works for me"
Tried both local dev instance and a cloud hosted instance.
weird


So weird, what could be different?


could any of that cause problems?
I've check on 3 instances in time (different releases of SB postgres) and all work.
so weird
Not sure why it would matter but are you using orioledb option?
Have you retyped in your query or was it copy pasted?
Is this a recent instance? But once again can't imagine that being broken in life of SB versions.
I remember having issues with this in the past and always just fell back to using
#- '{a}'
. what is orioledb? And I hand-typed itIt is a very new alpha low level postgres database storage option available when you create your instance.
yeah, i doubt it since this issue has been around for a while
When was the last time you upgraded the postgres on this instance?
Spin up a new instance and test it.