Failed to enable dblink: failed to create pg.extensions: permission denied to create extension "dblink"
RafiulM opened this issue · comments
Bug report
- I confirm this is a bug with Supabase, not with my own application.
- I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
I'm trying to enable the dblink extension from the supabase dashboard and it's giving me this error
Failed to enable dblink: failed to create pg.extensions: permission denied to create extension "dblink"
To Reproduce
Go to supabase project dashboard > database > extensions > dblink
Expected behavior
The dblink extension should be enabled
Screenshots
![Screenshot 2024-01-22 at 12 05 49](https://private-user-images.githubusercontent.com/39544732/298467351-ac598ff5-671a-4780-b433-e3f9bb6f8518.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI0MTQ1MTYsIm5iZiI6MTcyMjQxNDIxNiwicGF0aCI6Ii8zOTU0NDczMi8yOTg0NjczNTEtYWM1OThmZjUtNjcxYS00NzgwLWI0MzMtZTNmOWJiNmY4NTE4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzMxVDA4MjMzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY3YzE1ZGI5ZjQzZWRhMjRiNWVhNDVjOGQwZWMxYWVmZGVhZTZiNTA3ZGNjNDY2MTU5MTk2ZmI3MWJiOWJjY2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.6UDy1ReLyYdo40ODx9UvzwUL6cn-dilwLtb2ZDRTKx0)
Additional context
I need dblink enabled to be able to connect to the remote db from my supabase local dev environment. Currently when I run supase db push
it returns:
ERROR: permission denied to create extension "dblink" (SQLSTATE 42501)
At statement 2: create extension if not exists "dblink" with schema "extensions"