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:38 +0000 (03:15 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 17 Mar 2007 03:15:38 +0000 (03:15 +0000)
commitcdf8b56d5463815244467ea8f5ec6e72b6c65a6c
treee3d810e8d1d00bc7fffecb67aa2b59c02c97b5ef
parente88a7ad77486db0926d33b31962d274bc9fd08ae
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