Re: Signature change for SPI_cursor_open

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Hallgren <thhal(at)mailblocks(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Signature change for SPI_cursor_open
Date: 2004-10-30 19:53:39
Message-ID: 11383.1099166019@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thomas Hallgren <thhal(at)mailblocks(dot)com> writes:
> Ok, now I understand. Thanks for the explanation. I guess that if
> read_only is set to true and an attempt is made to execute a plan that
> has side effect, that will cause an ERROR?

Right, it'll bounce anything except a SELECT query. (This test is not
watertight; consider SELECT nextval() ... but on the other hand that's a
non-transactional operation that does not care about snapshots anyway.)

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2004-10-30 19:54:40 array_to_column function
Previous Message Thomas Hallgren 2004-10-30 19:20:34 Re: Signature change for SPI_cursor_open