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:47 +0000 (03:15 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 17 Mar 2007 03:15:47 +0000 (03:15 +0000)
commit32311dfaa0c6a22b1e7268710167d6a8b7f41181
tree4916bf254d23ee938492a699807c6d2ca4fccf98
parent009dac8ed49ee256d94bc65df9316e49469bf5fb
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