© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
3 replies
dc_dalin

Exposing pgmq queues via migration with RLS

Hey everyone, I’m working with pgmq queues in Supabase. I have a cron job calling an Edge Function and I want to expose queues via PostgREST using a schema migration instead of the Supabase Dashboard.

I also need RLS on the queues so I can safely do this:

const { error: deleteError } = await supabase
.schema('pgmq_public')
.rpc('delete', {
queue_name: QUEUE_NAME,
msg_id: message.msg_id,
});


Has anyone done this before? Any examples of exposing pgmq queues via migration and setting up RLS would be really helpful.
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 Queues (pgmq)
SupabaseSSupabase / help-and-questions
7mo ago
Migration issue on pgmq with branching?
SupabaseSSupabase / help-and-questions
4mo ago
PGRST202 error with queues: public.pgmq_public.send not found in schema cache
SupabaseSSupabase / help-and-questions
13mo ago
Queues archiving via edge function
SupabaseSSupabase / help-and-questions
13mo ago