Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL to enable pg_net in supabase guide incorrect #75

Closed
selbyk opened this issue Dec 14, 2022 · 1 comment
Closed

SQL to enable pg_net in supabase guide incorrect #75

selbyk opened this issue Dec 14, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@selbyk
Copy link

selbyk commented Dec 14, 2022

Improve documentation

Link

https://supabase.com/docs/guides/database/extensions/pgnet

Describe the problem

Documentation is incorrect

The sql to enable pg_net extension in the doc is:

create schema if not exists net;
create extension pg_net with schema net;

but was getting error

{"Type":"ErrorResponse","Severity":"ERROR","SeverityUnlocalized":"ERROR","Code":"55000","Message":"schema net is not a member of extension \"pg_net\"","Detail":"An extension may only use CREATE ... IF NOT EXISTS to skip object creation if the conflicting object is one that it already owns.","Hint":"","Position":0,"InternalPosition":0,"InternalQuery":"","Where":"","SchemaName":"","TableName":"","ColumnName":"","DataTypeName":"","ConstraintName":"","File":"pg_depend.c","Line":274,"Routine":"checkMembershipInCurrentExtension","UnknownFields":null}

Describe the improvement

https://github.com/supabase/pg_net/blob/master/docs/installation.md had the sql I needed to enable the extension by migration:

create extension pg_net;

Additional context

Thanks @GaryAustin1

@selbyk selbyk added the documentation Improvements or additions to documentation label Dec 14, 2022
@selbyk selbyk closed this as completed Dec 14, 2022
@selbyk
Copy link
Author

selbyk commented Dec 14, 2022

Closed. Opened in correct repo: supabase/supabase#10986

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant