Re: BUG #7636: \ef doesn't honor ON_ERROR_ROLLBACK

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: pgmail(at)joh(dot)to
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #7636: \ef doesn't honor ON_ERROR_ROLLBACK
Date: 2013-06-29 03:04:42
Message-ID: 20130629030442.GK13790@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, Nov 1, 2012 at 02:04:56PM +0000, pgmail(at)joh(dot)to wrote:
> The following bug has been logged on the website:
>
> Bug reference: 7636
> Logged by: Marko Tiikkaja
> Email address: pgmail(at)joh(dot)to
> PostgreSQL version: 9.1.6
> Operating system: OSX something
> Description:
>
> Hi,
>
> It looks like \ef doesn't honor ON_ERROR_ROLLBACK:
>
> =# \set ON_ERROR_ROLLBACK true
> =# BEGIN;
> BEGIN
> =# \ef error
> ERROR: function "error" does not exist
> =# select 1;
> ERROR: current transaction is aborted, commands ignored until end of
> transaction block

I think ON_ERROR_ROLLBACK only controls errors in user queries, not
errors in psql operations. Sorry.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2013-06-29 03:09:20 Re: BUG #7650: DROP TABLE IF EXISTS fails if schema does not exist
Previous Message Bruce Momjian 2013-06-28 23:22:36 Re: BUG #6528: pglesslog still referenced in docs, but no 9.1 support