Re: [GENERAL] Stop execution without ERROR

2013-10-15 Thread Karsten Hilbert
On Wed, Oct 16, 2013 at 12:04:53PM +1100, James Sewell wrote: > Let's say I'm running the following SQL script via psql -f > > BEGIN > \set ON_ERROR_STOP > SELECT myFunction(); > CREATE TABLE x(id int); > END; > > Is there anything I can do in myFunction which will: > > a) Stop execution of the

Re: [GENERAL] Stop execution without ERROR

2013-10-15 Thread David Johnston
james.sewell wrote > Hello all, > > Let's say I'm running the following SQL script via psql -f > > BEGIN > \set ON_ERROR_STOP > SELECT myFunction(); > CREATE TABLE x(id int); > END; > > Is there anything I can do in myFunction which will: > > a) Stop execution of the script so that x will not b