Re: feature request: auto savepoint for interactive psql when in transaction. - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: feature request: auto savepoint for interactive psql when in transaction.
Date
Msg-id 1317239367-sup-45@alvh.no-ip.org
Whole thread Raw
In response to Re: feature request: auto savepoint for interactive psql when in transaction.  (Stephen Frost <sfrost@snowman.net>)
Responses Re: feature request: auto savepoint for interactive psql when in transaction.
List pgsql-hackers
Excerpts from Stephen Frost's message of mié sep 28 16:22:58 -0300 2011:

> Be careful when running scripts, however..  Any invocation of psql will
> read you .psqlrc and if you've got ON_ERROR_ROLLBACK set there then
> psql -f blah ; will pick up on that and you'll end up running every
> command in the script (including the commit at the end...), even if some
> of the commands in it failed.

So set it to "interactive".

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: feature request: auto savepoint for interactive psql when in transaction.
Next
From: Brar Piening
Date:
Subject: Re: Review of VS 2010 support patches