postgresql/src/include/storage
Bruce Momjian d0f3a7e9c4 - Modifies LOCKTAG to include a 'classId'. Relation receive a classId of
RelOid_pg_class, and transaction locks XactLockTableId. RelId is renamed
to objId.

- LockObject() and UnlockObject() functions created, and their use
sprinkled throughout the code to do descent locking for domains and
types. They accept lock modes AccessShare and AccessExclusive, as we
only really need a 'read' and 'write' lock at the moment.  Most locking
cases are held until the end of the transaction.

This fixes the cases Tom mentioned earlier in regards to locking with
Domains.  If the patch is good, I'll work on cleaning up issues with
other database objects that have this problem (most of them).

Rod Taylor
2003-02-19 04:02:54 +00:00
..
backendid.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
block.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
buf_internals.h pgindent run. 2002-09-04 20:31:48 +00:00
buf.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
buffile.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
bufmgr.h Add DLLIMPORT declarations required by contrib with asserts enabled. 2002-10-22 20:00:48 +00:00
bufpage.h pgindent run. 2002-09-04 20:31:48 +00:00
fd.h Restructure local-buffer handling per recent pghackers discussion. 2002-08-06 02:36:35 +00:00
freespace.h Performance improvement for MultiRecordFreeSpace on large relations --- 2002-09-20 19:56:01 +00:00
ipc.h pgindent run. 2002-09-04 20:31:48 +00:00
item.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
itemid.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
itempos.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
itemptr.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
large_object.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
lmgr.h - Modifies LOCKTAG to include a 'classId'. Relation receive a classId of 2003-02-19 04:02:54 +00:00
lock.h - Modifies LOCKTAG to include a 'classId'. Relation receive a classId of 2003-02-19 04:02:54 +00:00
lwlock.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
off.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
page.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
pg_sema.h pgindent run. 2002-09-04 20:31:48 +00:00
pg_shmem.h pgindent run. 2002-09-04 20:31:48 +00:00
pmsignal.h pgindent run. 2002-09-04 20:31:48 +00:00
pos.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
proc.h Rename 'holder' references to 'proclock' for PROCLOCK references, for 2003-02-18 02:13:24 +00:00
relfilenode.h New pgindent run with fixes suggested by Tom. Patch manually reviewed, 2001-11-05 17:46:40 +00:00
s_lock.h TAS code originally written for s390 (32-bit) does not work for s390x 2002-11-22 01:13:16 +00:00
shmem.h [ Newest version of patch applied.] 2002-08-17 13:04:19 +00:00
sinval.h pgindent run. 2002-09-04 20:31:48 +00:00
sinvaladt.h This patch reserves the last superuser_reserved_connections slots for 2002-08-29 21:02:12 +00:00
smgr.h Restructure local-buffer handling per recent pghackers discussion. 2002-08-06 02:36:35 +00:00
spin.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00