Realtime Row Level security broken for database-wide subscriptions on PG12
See original GitHub issueBug report
Describe the bug
Affects
- PG12
- PG14 (although these will only be new use-cases, so nobody should be experiencing the bug)
Unaffected
- PG13 users. If you are experiencing problems with PG13, it is probably because your Policies are not allowing access (whereas previously Policies weren’t applied). This is intended behaviour - your database security is working properly
Description
We’re discovered an issue as a result of our Row-Level Security Realtime updates for that affects any database-wide publications. (eg CREATE PUBLICATION supabase_realtime FOR ALL TABLES;
)
To Reproduce
Realtime subscription may have stopped you are on PG12 and you have a Publication in your database set up like

Workaround
Disable the FULL
publication (red) and enable each table individually (green)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:43 (25 by maintainers)
Top Results From Across the Web
Row Level Security - Supabase
Secure your data using Postgres Row Level Security. ... REALTIME SUBSCRIPTIONS * Realtime enables listening to any table in your public schema.
Read more >Row level Security not working right now?
Solved: Hi, could anyone confirm that the RLS is not working at the moment? the RLS setting I set up worked before. But...
Read more >Row-Level Security and Object-Level Security together in ...
Struggling with using Row - Level Security (RLS) together with Object-Level Security (OLS) in Power BI? You think it can't be done?
Read more >QlikView row level security is not working - Qlik Community
QlikWorld 2023, a live, in-person thrill ride. Save $400 before Dec 31st: REGISTER NOW!
Read more >Row Level Security not working in Power BI with Groups
The typical "gotcha" is that the Power BI App Workspace (group) settings are left to the default: Members can edit Power BI content....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
UPDATE
We’re currently rolling out the fixes to all projects, and some projects may have already been fixed depending on your project’s region.
UPDATE
We have rolled out the fixes to all projects. If you’re still experiencing Realtime issues then please drop a comment here and/or email support@supabase.io with your project ref and we’ll investigate. Thanks!