BUG #3665: INSERT is not allowed in a non-volatile function

From: "Evgeni" <evgeni117(at)mail(dot)ru>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #3665: INSERT is not allowed in a non-volatile function
Date: 2007-10-10 13:01:52
Message-ID: 200710101301.l9AD1qos002885@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 3665
Logged by: Evgeni
Email address: evgeni117(at)mail(dot)ru
PostgreSQL version: 8.1.7
Operating system: Linux Redhat 7.2
Description: INSERT is not allowed in a non-volatile function
Details:

I write function in c. in function using SPI_exe("INSERT ...
CREATE OR REPLACE FUNCTION my_fun(character varying, character varying,
integer)
RETURNS integer AS
'$libdir/my_fun', 'my_fun'
LANGUAGE 'c' VOLATILE STRICT;

On SPI_exec see erorr ERROR: INSERT is not allowed in a non-volatile
function
Manualy INSERT is command, all ok!
Ok/
I'm make example
:http://www.postgresql.org/docs/8.1/interactive/spi-examples.html
INSERT INTO a VALUES (execq('INSERT INTO a VALUES (0)',0));
The same error!!!
Help me/

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Yves 2007-10-10 13:45:14 BUG #3666: Truncated Parameter in LDAP string when spaces contained
Previous Message Gregory Stark 2007-10-10 11:51:20 Re: PQmakeEmptyPQresult makes my application dumps core?