Hello David,

vagrant@vagrant:~$ /usr/local/pgsql/bin/psql -v ON_ERROR_STOP=1 -f two.psql
-f three.psql postgres
?column?
----------
       2
(1 row)

?column?
----------
       3
(1 row)

(there is a \quit at the end of two.psql)

Yep, that summarizes my issues!

ON_ERROR_STOP is only of SQL errors, so a script can really stop by having an intentional SQL error.

--
Fabien.

Attachment: quit.sql
Description: application/sql

Attachment: error.sql
Description: application/sql

Attachment: include.sql
Description: application/sql

Attachment: exit.sql
Description: application/sql

Reply via email to