Issue with filter - Postgres CDC realtime #29884
|
I have a problem when I try to listen to UPDATE changes with Supabase realtime. Realtime logs error message :
My code : When I don't specify a filter, everything works fine, but as soon as I add a filter, it no longer works, regardless of the column. |
Replies: 2 comments 9 replies
|
Don't put your string in quotes at all. https://supabase.com/docs/guides/realtime/postgres-changes#equal-to-eq |
|
For anyone else hitting this "invalid column for filter" error, few things to check before nuking the project: Also make sure your table is in the supabase_realtime publication: RLS gotcha: Even with RLS "disabled" in the UI, sometimes the policies stick around in a weird state. The padlock icon difference you noticed is telling. You can verify with: If relrowsecurity is true but you expect it off, run alter table "Player" disable row level security; Otherwise Realtime can't see that column's value in the change event to apply your filter. |


I solved the problem by creating a new supabase project. The filters work again without having modified the code.
I think the multiple project restarts caused problems.
I have the impression that the problem was perhaps linked to the RLS, as I notice the presence of a padlock icon next to the table name, which was no longer present on the old project despite the deactivation of the RLS.
Old project screenshot (with the error) :
New project screenshot (without the error) :
@GaryAustin1 thanks for your help 👍