Implement our own --drop-if-exists approach. (#133)
Postgres pg_restore is easily confused with SQL object dependencies when the archive is filtered (either using --section or --use-list, or both). To avoid that problem, issue a DROP TABLE IF EXISTS ... CASCADE; for all the tables we are going to process when --drop-if-exists is in use.
parent
a09c13d6
Please register or sign in to comment