You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of my tables in the supabase_realtime publication has a column of user-defined type/enum. I'm unable to subscribe to changes in this table, but other tables in the realtime publication are working. Removing this column fixes this issue.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Create an enum/user-defined type
DO $$ BEGINCREATETYPE "level" AS ENUM (
'OWNER',
'GUEST'
);
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
Create a table with a column of this type
CREATETABLEIF NOT EXISTS "users" (
id bigint GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
access "level" DEFAULT 'GUEST'NOT NULL,
);
Add table to realtime publication
BEGIN;
DROP publication IF EXISTS supabase_realtime;
CREATE publication supabase_realtime;
COMMIT;
ALTER publication supabase_realtime ADD TABLE users;
@kausko this is a known issue that we're currently dealing with. Realtime RLS, which is what all Supabase projects are currently using, rely on wal2json to function and we need to upgrade it v2.4. We'll be rolling out the upgrade to all Supabase projects in the next week or so.
Bug report
Describe the bug
One of my tables in the
supabase_realtime
publication has a column of user-defined type/enum. I'm unable to subscribe to changes in this table, but other tables in the realtime publication are working. Removing this column fixes this issue.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
To receive payloads with updated data
System information
Additional context
Possibly related to #203 and #207?
The text was updated successfully, but these errors were encountered: