Re: PL/perl elog(ERROR) Does not Abort Transaction

From: "David E(dot) Wheeler" <david(dot)wheeler(at)iovation(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Pg Hackers <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: PL/perl elog(ERROR) Does not Abort Transaction
Date: 2012-05-11 00:46:06
Message-ID: A94571C3-1469-4F9F-82EA-AAF733BA4DEB@iovation.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

David

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2012-05-11 00:49:32 Re: PL/perl elog(ERROR) Does not Abort Transaction
Previous Message Bruce Momjian 2012-05-11 00:41:47 Re: PL/perl elog(ERROR) Does not Abort Transaction