How to cleanly restore binary dump using pg_restore?
I believe I need to disable triggers for it to go smoothly but not sure what to do about permissions, with
For context, I am trying to:
--disable-triggers I am hitting pg_restore: error: could not execute query: ERROR: permission denied: "RI_ConstraintTrigger_whatever" is a system trigger.For context, I am trying to:
- run
npx supabase db resetfirst (run all the migrations and leave me with empty tables, no seed) - restore from data-only binary dump using
pg_restore