Re: [HACKERS] BEGIN inside transaction should be an error

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>
Cc: Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] BEGIN inside transaction should be an error
Date: 2006-05-26 16:35:41
Message-ID: 20060526163540.GJ23789@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Gurjeet Singh wrote:

> *************** BeginTransactionBlock(void)
> *** 2725,2731 ****
> case TBLOCK_SUBINPROGRESS:
> case TBLOCK_ABORT:
> case TBLOCK_SUBABORT:
> ! ereport(WARNING,
> (errcode(ERRCODE_ACTIVE_SQL_TRANSACTION),
> errmsg("there is already a
> transaction in progress")));
> break;
> --- 2726,2732 ----
> case TBLOCK_SUBINPROGRESS:
> case TBLOCK_ABORT:
> case TBLOCK_SUBABORT:
> ! ereport(ERROR,
> (errcode(ERRCODE_ACTIVE_SQL_TRANSACTION),
> errmsg("there is already a
> transaction in progress")));
> break;

This should depend on the GUC variable for the patch to work at all ...

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim C. Nasby 2006-05-26 16:38:41 Re: LIKE, leading percent, bind parameters and indexes
Previous Message Tom Lane 2006-05-26 16:35:36 Re: Compression and on-disk sorting

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2006-05-26 16:43:18 Re: [HACKERS] BEGIN inside transaction should be an error
Previous Message Gurjeet Singh 2006-05-26 16:15:25 Re: [HACKERS] BEGIN inside transaction should be an error