postgresql/src/backend/storage
Robert Haas 3cba8999b3 Create a "fast path" for acquiring weak relation locks.
When an AccessShareLock, RowShareLock, or RowExclusiveLock is requested
on an unshared database relation, and we can verify that no conflicting
locks can possibly be present, record the lock in a per-backend queue,
stored within the PGPROC, rather than in the primary lock table.  This
eliminates a great deal of contention on the lock manager LWLocks.

This patch also refactors the interface between GetLockStatusData() and
pg_lock_status() to be a bit more abstract, so that we don't rely so
heavily on the lock manager's internal representation details.  The new
fast path lock structures don't have a LOCK or PROCLOCK structure to
return, so we mustn't depend on that for purposes of listing outstanding
locks.

Review by Jeff Davis.
2011-07-18 00:49:28 -04:00
..
buffer Unify spelling of "canceled", "canceling", "cancellation" 2011-06-29 09:28:46 +03:00
file Further thoughts about temp_file_limit patch. 2011-07-17 15:05:44 -04:00
freespace Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
ipc Try to acquire relation locks in RangeVarGetRelid. 2011-07-08 22:19:30 -04:00
large_object pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
lmgr Create a "fast path" for acquiring weak relation locks. 2011-07-18 00:49:28 -04:00
page Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
smgr Capitalization fixes 2011-06-19 00:37:30 +03:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00