dbTalk Databases Forums  

[BUGS] BUG #2791: Error while commiting

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2791: Error while commiting in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Raman Dabhade
 
Posts: n/a

Default [BUGS] BUG #2791: Error while commiting - 11-28-2006 , 10:56 AM







The following bug has been logged online:

Bug reference: 2791
Logged by: Raman Dabhade
Email address: raman.dabhade (AT) coalitiondev (DOT) com
PostgreSQL version: 8.1
Operating system: Win XP
Description: Error while commiting
Details:

ERROR: SPI_execute_plan failed executing query "commit":
SPI_ERROR_TRANSACTION
CONTEXT: PL/pgSQL function "processrecords" line 4 at SQL statement

When executing following procedure:

CREATE OR REPLACE FUNCTION processRecords()
RETURNS int8 AS
$BODY$
declare
begin

commit ;

return 0;
end;
$BODY$
LANGUAGE 'plpgsql' VOLATILE;

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Reply With Quote
  #2  
Old   
Michael Fuhr
 
Posts: n/a

Default Re: [BUGS] BUG #2791: Error while commiting - 11-29-2006 , 08:47 AM






On Tue, Nov 28, 2006 at 02:13:15PM +0000, Raman Dabhade wrote:
Quote:
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/i...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

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.