Re: PL/perl elog(ERROR) Does not Abort Transaction - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: PL/perl elog(ERROR) Does not Abort Transaction
Date
Msg-id 20120511004932.GI16881@momjian.us
Whole thread Raw
In response to Re: PL/perl elog(ERROR) Does not Abort Transaction  ("David E. Wheeler" <david.wheeler@iovation.com>)
List pgsql-hackers
On Thu, May 10, 2012 at 05:46:06PM -0700, David E. Wheeler wrote:
> On May 10, 2012, at 5:41 PM, Bruce Momjian wrote:
> 
> > OK, still an abort on 9.1.X head:
> > 
> >     $ psql test
> >     psql (9.1.3)
> >     Type "help" for help.
> >     
> >     test=> begin;
> >     BEGIN
> >     test=> do language plperl $$ elog(ERROR, 'foo')$$;
> >     ERROR:  foo at line 1.
> >     CONTEXT:  PL/Perl anonymous code block
> >     test=> select true;
> >     ERROR:  current transaction is aborted, commands ignored until end of
> >     transaction block
> 
> Ooh, heisenbug. What version of Perl? Mine is 5.14.2 compiled from source.

I have:
 This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + It's impossible for everything to be true. +


pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: PL/perl elog(ERROR) Does not Abort Transaction
Next
From: Tom Lane
Date:
Subject: Re: PL/perl elog(ERROR) Does not Abort Transaction