Re: BUG #2791: Error while commiting

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Raman Dabhade <raman(dot)dabhade(at)coalitiondev(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2791: Error while commiting
Date: 2006-11-29 14:46:10
Message-ID: 20061129144610.GA32145@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tue, Nov 28, 2006 at 02:13:15PM +0000, Raman Dabhade wrote:
> ERROR: SPI_execute_plan failed executing query "commit":
> SPI_ERROR_TRANSACTION
> CONTEXT: PL/pgSQL function "processrecords" line 4 at SQL statement

http://www.postgresql.org/docs/8.1/interactive/plpgsql-structure.html

"Functions and trigger procedures are always executed within a
transaction established by an outer query -- they cannot start or
commit that transaction, since there would be no context for them
to execute in."

--
Michael Fuhr

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message andres.ortega 2006-11-29 15:32:14 BUG #2794: corrupted table pk index
Previous Message Thiago dos Santos Alves 2006-11-29 12:21:22 BUG #2793: Cannot Install (Problem with permitions)