prevent psql script execution from stopping

Поиск
Список
Период
Сортировка
Искать

prevent psql script execution from stopping

От:
Horst Herb <hherb@malleenet.net.au>
Дата:
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
FAQ