SPI_cursor_open failed to enforce that only read-only queries could be
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 17 Mar 2007 03:15:55 +0000 (03:15 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 17 Mar 2007 03:15:55 +0000 (03:15 +0000)
commit715a0a2d35e3335aa7f9673be1afde3b636882ce
treef75d4d7a34909c860f09882f2101fc15be693a99
parent69b4331e72c375bef01e9436dac383fcd0288d89
SPI_cursor_open failed to enforce that only read-only queries could be
executed in read_only mode.  This could lead to various relatively-subtle
failures, such as an allegedly stable function returning non-stable results.
Bug goes all the way back to the introduction of read-only mode in 8.0.
Per report from Gaetano Mendola.
src/backend/executor/spi.c