pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: pgmail@joh.to
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7636: \ef doesn't honor ON_ERROR_ROLLBACK
Date: Fri, 28 Jun 2013 23:04:42 -0400
Message-ID: <20130629030442.GK13790@momjian.us> (raw)
In-Reply-To: <E1TTvOC-0001jD-9B@wrigleys.postgresql.org>
References: <E1TTvOC-0001jD-9B@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On Thu, Nov  1, 2012 at 02:04:56PM +0000, pgmail@joh.to wrote:
> The following bug has been logged on the website:
> 
> Bug reference:      7636
> Logged by:          Marko Tiikkaja
> Email address:      pgmail@joh.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@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

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


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)

Message-ID: <20130629030442.GK13790@momjian.us>
Permalink:  ../20130629030442.GK13790@momjian.us/
Also on:    postgresql.org/message-id/20130629030442.GK13790@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: bruce@momjian.us, pgmail@joh.to
  Subject: Re: BUG #7636: \ef doesn't honor ON_ERROR_ROLLBACK
  In-Reply-To: <20130629030442.GK13790@momjian.us>
  References: <E1TTvOC-0001jD-9B@wrigleys.postgresql.org> <20130629030442.GK13790@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox