© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
4 replies
Keena

Cannot create policy on a legacy table, even if RLS can be enabled

Hi. I have an issue on a legacy table (created in 2021).
The user postgres owns this table, and can enable RLS on it, but that's it. It cannot create policies, it always gives me this :
ERROR:  42501: permission denied for schema auth
ERROR:  42501: permission denied for schema auth
. That table is in
public
public
schema, not in
auth
auth
so I don't get why I am having this error. Same error when trying to create the actual policy on dbeaver.

Here is the very basic policy I want to create:
CREATE POLICY tous_select ON public."Liste_appreciations" FOR SELECT USING (true);
CREATE POLICY tous_select ON public."Liste_appreciations" FOR SELECT USING (true);


Has anyone faced the same issue ?
Thanks.
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

RLS Policy on a link table
SupabaseSSupabase / help-and-questions
4y ago
Security RLS policy on users table
SupabaseSSupabase / help-and-questions
7mo ago
Unable to create a new record in a table if RLS is enabled
SupabaseSSupabase / help-and-questions
8mo ago
Cannot enable RLS policy for storage.buckets table
SupabaseSSupabase / help-and-questions
7d ago