postgresql/src/backend/utils
Tom Lane 46e3a16b05 When FOR UPDATE/SHARE is used with LIMIT, put the LockRows plan node
underneath the Limit node, not atop it.  This fixes the old problem that such
a query might unexpectedly return fewer rows than the LIMIT says, due to
LockRows discarding updated rows.

There is a related problem that LockRows might destroy the sort ordering
produced by earlier steps; but fixing that by pushing LockRows below Sort
would create serious performance problems that are unjustified in many
real-world applications, as well as potential deadlock problems from locking
many more rows than expected.  Instead, keep the present semantics of applying
FOR UPDATE after ORDER BY within a single query level; but allow the user to
specify the other way by writing FOR UPDATE in a sub-select.  To make that
work, track whether FOR UPDATE appeared explicitly in sub-selects or got
pushed down from the parent, and don't flatten a sub-select that contained an
explicit FOR UPDATE.
2009-10-28 14:55:47 +00:00
..
adt When FOR UPDATE/SHARE is used with LIMIT, put the LockRows plan node 2009-10-28 14:55:47 +00:00
cache Re-implement EvalPlanQual processing to improve its performance and eliminate 2009-10-26 02:26:45 +00:00
error Write to the Windows eventlog in UTF16, converting the message encoding 2009-10-17 00:24:51 +00:00
fmgr Support use of function argument names to identify which actual arguments 2009-10-08 02:39:25 +00:00
hash Update copyright for 2009. 2009-01-01 17:24:05 +00:00
init Make it possibly to specify GUC params per user and per database. 2009-10-07 22:14:26 +00:00
mb Fix typo in previous release as reported by Itagaki Takahiro, but missed 2009-10-17 05:14:52 +00:00
misc Remove regex_flavor GUC, so that regular expressions are always "advanced" 2009-10-21 20:38:58 +00:00
mmgr Speed up AllocSetFreeIndex, which is a significant cost in palloc and pfree, 2009-07-21 19:53:12 +00:00
resowner 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
sort Extend EXPLAIN to support output in XML or JSON format. 2009-08-10 05:46:50 +00:00
time Fix snapshot management, take two. 2009-10-07 16:27:18 +00:00
.cvsignore Cleanup to ensure good state of derived files in tarballs. 2000-06-09 02:38:36 +00:00
Gen_dummy_probes.sed Update copyright for 2009. 2009-01-01 17:24:05 +00:00
Gen_fmgrtab.pl Update copyright for 2009. 2009-01-01 17:24:05 +00:00
Gen_fmgrtab.sh Update copyright for 2009. 2009-01-01 17:24:05 +00:00
Makefile Add a few more DTrace probes to the backend. 2008-08-01 13:16:09 +00:00
probes.d Revert DTrace patch from Robert Lor 2009-04-02 20:59:10 +00:00