prevent psql script execution from stopping - Mailing list pgsql-novice

From Horst Herb
Subject prevent psql script execution from stopping
Date
Msg-id 20011129214526.12576.qmail@gnumed.dhs.org
Whole thread Raw
List pgsql-novice
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

pgsql-novice by date:

Previous
From: Francisco Reyes
Date:
Subject: Vacuum analyze needed after making index?
Next
From: Francisco Reyes
Date:
Subject: Learning to read explain