postgresql/src/backend
Alvaro Herrera 88c556680c Fix crash in error report of invalid tuple lock
My tweak of these error messages in commit c359a1b082 contained the
thinko that a query would always have rowMarks set for a query
containing a locking clause.  Not so: when declaring a cursor, for
instance, rowMarks isn't set at the point we're checking, so we'd be
dereferencing a NULL pointer.

The fix is to pass the lock strength to the function raising the error,
instead of trying to reverse-engineer it.  The result not only is more
robust, but it also seems cleaner overall.

Per report from Robert Haas.
2013-08-02 13:18:37 -04:00
..
access Add SQL Standard WITH ORDINALITY support for UNNEST (and any other SRF) 2013-07-29 16:38:01 +01:00
bootstrap Use an MVCC snapshot, rather than SnapshotNow, for catalog scans. 2013-07-02 09:47:01 -04:00
catalog Remove SnapshotNow and HeapTupleSatisfiesNow. 2013-08-01 10:46:19 -04:00
commands Improve comments for IncrementalMaintenance DML enabling functions. 2013-08-01 14:31:09 -05:00
executor Add SQL Standard WITH ORDINALITY support for UNNEST (and any other SRF) 2013-07-29 16:38:01 +01:00
foreign Arrange to cache FdwRoutine structs in foreign tables' relcache entries. 2013-03-06 23:48:09 -05:00
lib Improve ilist.h's support for deletion of slist elements during iteration. 2013-07-24 17:42:34 -04:00
libpq Avoid reading below the start of a stack variable in tokenize_file(). 2013-06-12 19:50:52 -04:00
main Renovate display of non-ASCII messages on Windows. 2013-06-26 11:17:33 -04:00
nodes Add SQL Standard WITH ORDINALITY support for UNNEST (and any other SRF) 2013-07-29 16:38:01 +01:00
optimizer Fix crash in error report of invalid tuple lock 2013-08-02 13:18:37 -04:00
parser Fix crash in error report of invalid tuple lock 2013-08-02 13:18:37 -04:00
po Translation updates 2013-06-24 14:16:44 -04:00
port Use SA_RESTART for all signals, including SIGALRM. 2013-06-15 15:39:51 -04:00
postmaster Assorted bgworker-related comment fixes. 2013-08-01 12:20:31 -04:00
regex Fix regex match failures for backrefs combined with non-greedy quantifiers. 2013-07-18 21:22:37 -04:00
replication Message style improvements 2013-07-28 07:01:13 -04:00
rewrite Move strip_implicit_coercions() from optimizer to nodeFuncs.c. 2013-07-23 18:21:19 -04:00
snowball Update copyrights for 2013 2013-01-01 17:15:01 -05:00
storage Fix typo in comment. 2013-08-02 09:15:42 -04:00
tcop Add session_preload_libraries configuration parameter 2013-07-12 21:23:50 -04:00
tsearch pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
utils Remove SnapshotNow and HeapTupleSatisfiesNow. 2013-08-01 10:46:19 -04:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
common.mk Call check_keywords.pl in maintainer-check 2012-02-27 13:53:12 +02:00
Makefile Move relpath() to libpgcommon 2013-02-21 22:46:17 -03:00
nls.mk Translation updates 2013-05-05 22:34:23 -04:00