Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

dumpable schema from a supabase instance #41

Open
steve-chavez opened this issue Feb 8, 2024 · 1 comment
Open

dumpable schema from a supabase instance #41

steve-chavez opened this issue Feb 8, 2024 · 1 comment

Comments

@steve-chavez
Copy link
Member

Problem

Currently it's too hard to get a schema only pg_dump to work from a Supabase instance.

PGOPTIONS='-c pg_stat_statements.track=none' pg_dump --schema-only postgresql://supabase_admin:xxx@db.yyy.supabase.co:5432/postgres > dump.sql

Trying to restore this dump will show a lot of errors because of all the extensions involved.

Having a schema only dump working would be very useful for debugging purposes (like for postgREST or pg_graphql introspection)

Proposal

Having a quick command to do this in a local pg would be ideal.

npg-restore dump.sql

postgres launched..
@olirice
Copy link
Collaborator

olirice commented Feb 8, 2024

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants