]> granicus.if.org Git - postgresql/commit
Disallow scrolling of FOR UPDATE/FOR SHARE cursors, so as to avoid problems
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 24 Oct 2007 23:27:08 +0000 (23:27 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 24 Oct 2007 23:27:08 +0000 (23:27 +0000)
commit048efc25e46d95f6a6dad20d65f6d9dd10c640d4
tree62aa8e84ce59710b3317eb97926cfa86452d8bd0
parent8a35b07e1849c1af7acbdc8eea0bc357b5ad51e3
Disallow scrolling of FOR UPDATE/FOR SHARE cursors, so as to avoid problems
in corner cases such as re-fetching a just-deleted row.  We may be able to
relax this someday, but let's find out how many people really care before
we invest a lot of work in it.  Per report from Heikki and subsequent
discussion.

While in the neighborhood, make the combination of INSENSITIVE and FOR UPDATE
throw an error, since they are semantically incompatible.  (Up to now we've
accepted but just ignored the INSENSITIVE option of DECLARE CURSOR.)
doc/src/sgml/ref/declare.sgml
src/backend/commands/portalcmds.c
src/backend/executor/spi.c
src/backend/parser/analyze.c
src/include/nodes/parsenodes.h
src/test/regress/expected/portals.out
src/test/regress/sql/portals.sql