Thread: prevent psql script execution from stopping

prevent psql script execution from stopping

From
Horst Herb
Date:
How  do I stop psql from bailing out of script executionwhen I attempt to
drop a non-existing table?

I thought "\set ON_ERROR_STOP 0" would do, but it doesn't.

example:
\set ON_ERROR_STOP 0
drop table foo;
create table foo(baz text);

never executes the create statement if table foo didn't exist

Horst