Re: SPI error with non-volatile functions - Mailing list pgsql-hackers

From Tom Mercha
Subject Re: SPI error with non-volatile functions
Date
Msg-id VI1PR02MB37124A43A8382DE84D3061CEF4760@VI1PR02MB3712.eurprd02.prod.outlook.com
Whole thread Raw
In response to Re: SPI error with non-volatile functions  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On 13/11/2019 06:13, Andres Freund wrote:
> Hi,
> 
> On 2019-11-13 05:09:31 +0000, Tom Mercha wrote:
>> I've been using SPI to execute some queries and this time I've tried to
>> issue CREATE TABLE commands through SPI. I've been getting the message
>> "ERROR: CREATE TABLE AS is not allowed in a non-volatile function".
> 
> Any chance you're specifying read_only = true to
> SPI_execute()/execute_plan()/...?
> 
> Greetings,
> 
> Andres Freund
> 

Dear Andres

That's exactly what's up! Everything is working as intended now. So 
sorry this was a bit silly of me, I didn't understand the message as a 
reference to that configuration.

Thanks so much.

Best regards
Tom

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [PATCH] Do not use StdRdOptions in Access Methods
Next
From: Amit Langote
Date:
Subject: Re: [PATCH] Do not use StdRdOptions in Access Methods