mendix / m2ee-tools

m2ee, the Mendix runtime helper tools for GNU/Linux
Other
27 stars 40 forks source link

adding the --clean --if-exists options to pg_restore #44

Closed hvisage closed 5 years ago

hvisage commented 5 years ago

Adding this is "needed" when there are objects that haven't been cleared yet like stored procedures.

Note: this is needed on the pg_restore side, as the normal m2ee dumpdb format is the custom archive (with compression) and not the plain text, which needs it on the pg_dump side as that gets loaded with a psql not pg_restore

hevisko commented 5 years ago

After I've found

mxnode:
  pg_restore: ...

I'll rather advise to withdraw this pull request, and use that (as the need be) to override for this issues.