Disallow scrolling of FOR UPDATE/FOR SHARE cursors, so as to avoid problems

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 048efc25e46d95f6a6dad20d65f6d9dd10c640d4
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-10-24T23:27:08Z
Releases: 8.3.0
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.)

Files