Skip to content

Commit 9a604bd

Browse files
committed
Backup db schema
1 parent e5f9bf9 commit 9a604bd

File tree

4 files changed

+741
-117
lines changed

4 files changed

+741
-117
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ cd data
9898
dbmate dump
9999
```
100100

101+
> Note: If `pgdump` fails due to row locks, a workaround is to grant the `postgres` role superuser permissions with `ALTER USER postgres WITH SUPERUSER`. After dumping the schema, you should reset the permissions using `ALTER USER postgres WITH NOSUPERUSER`. You can run these statements in the Superbase Dashboard SQL Editors.
102+
101103
## Schema (Public)
102104

103105
- Profile belongs to auth.users
@@ -185,6 +187,8 @@ query {
185187

186188
# Row Level Security Matrix (RLS)
187189

190+
You can query all policies via: `select * from pg_policies`.
191+
188192
See: [Row Level Security Matrix (RLS)](./data/supabase/rls-policies.md)
189193

190194
## Read More

0 commit comments

Comments
 (0)