Skip to content

Conversation

patrickhallen
Copy link
Contributor

psql will always terminate with an exit value of 0 regardless of SQL
errors during restore. Setting ON_ERROR_STOP=on fixes this.

This doesn't change the actual behavior of psql as long as --single-transaction is enabled (which is the current default). Without ON_ERROR_STOP and without --single-transaction psql would try to execute the rest of the SQL file and exit succesfully regardless of the number of errors.

psql will always terminate with an exit value of 0 regardless of SQL
errors during restore. Setting ON_ERROR_STOP=on fixes this.
@coveralls
Copy link

coveralls commented Sep 14, 2016

Coverage Status

Coverage increased (+0.005%) to 96.234% when pulling ef7aaca on patrickhallen:master into 9f01f51 on django-dbbackup:master.

@ZuluPro
Copy link
Contributor

ZuluPro commented Sep 15, 2016

@patrickhallen
Thank you very much, contributions are very appreciated.
I'll look it deeper tonight (UTC)

@ZuluPro
Copy link
Contributor

ZuluPro commented Nov 17, 2016

Sorry for my latency and thanks again !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants