Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UslT0-0003mq-8u for pgsql-bugs@arkaria.postgresql.org; Sat, 29 Jun 2013 03:04:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UslSz-00032f-OE for pgsql-bugs@arkaria.postgresql.org; Sat, 29 Jun 2013 03:04:49 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UslSy-00030z-3e for pgsql-bugs@postgresql.org; Sat, 29 Jun 2013 03:04:48 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UslSt-0006zO-Lp for pgsql-bugs@postgresql.org; Sat, 29 Jun 2013 03:04:47 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1UslSs-0005ax-SV; Fri, 28 Jun 2013 23:04:42 -0400 Date: Fri, 28 Jun 2013 23:04:42 -0400 From: Bruce Momjian To: pgmail@joh.to Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7636: \ef doesn't honor ON_ERROR_ROLLBACK Message-ID: <20130629030442.GK13790@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -0.5 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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 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