© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•14mo ago•
1 reply
Michael Do (Anfin W22)

What RLS policies to set for Supabase Queue Tables?

Hi! I’m setting up a Supabase and I’m referring to this docs: https://supabase.com/docs/guides/queues/quickstart#enable-rls-on-your-tables-in-pgmq-schemaSupabase . The docs mentions that I need to enable RLS on all queue tables (i.e., tables in the pgmq schema that begin with q_) if the Data API is enabled.

However, it doesn’t specify what RLS policies should be applied to these queue tables.

My situation:
• I’m using Clerk for authentication.
• For other tables in my database, I use the user_id column combined with the Supabase requesting_user_id() function to allow only rows where user_id matches the authenticated user’s ID.
• However, the queue tables created automatically by Supabase don’t have a user_id column, so I’m not sure how to set up RLS policies in this case.

I want to ensure that only authenticated users can interact with the queue. What RLS policies and SQL expressions should I use to achieve this?

Thank you!
Quickstart | Supabase Docs
Learn how to use Supabase Queues to add and read messages
Quickstart | Supabase Docs
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Supabase - RLS Policies Issues
SupabaseSSupabase / help-and-questions
13mo ago
Supabase and Prisma RLS policies
SupabaseSSupabase / help-and-questions
3y ago
RLS policies
SupabaseSSupabase / help-and-questions
13mo ago
Supabase RBAC and RLS policies performance
SupabaseSSupabase / help-and-questions
3y ago