pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #7636: \ef doesn't honor ON_ERROR_ROLLBACK
2+ messages / 2 participants
[nested] [flat]

* BUG #7636: \ef doesn't honor ON_ERROR_ROLLBACK
@ 2012-11-01 14:04  pgmail@joh.to
  0 siblings, 1 reply; 2+ messages in thread

From: pgmail@joh.to @ 2012-11-01 14:04 UTC (permalink / raw)
  To: pgsql-bugs

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





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #7636: \ef doesn't honor ON_ERROR_ROLLBACK
@ 2013-06-29 03:04  Bruce Momjian <bruce@momjian.us>
  parent: pgmail@joh.to
  0 siblings, 0 replies; 2+ messages in thread

From: Bruce Momjian @ 2013-06-29 03:04 UTC (permalink / raw)
  To: pgmail@joh.to; +Cc: pgsql-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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2013-06-29 03:04 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-11-01 14:04 BUG #7636: \ef doesn't honor ON_ERROR_ROLLBACK pgmail@joh.to
2013-06-29 03:04 ` Bruce Momjian <bruce@momjian.us>

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