Skip to content

stop psql on first error

Because i always forget how to stop psql on the first error:


\set ON_ERROR_STOP


You can include this at the top of your script/file, psql will stop right after the first error and will not try to continue any other commands in the chain.

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
To leave a comment you must approve it via e-mail, which will be sent to your address after submission.
Form options