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.
quit.sql
Description: application/sql
error.sql
Description: application/sql
include.sql
Description: application/sql
exit.sql
Description: application/sql