postgresql/src/backend/utils
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
..
adt - Modifies LOCKTAG to include a 'classId'. Relation receive a classId of 2003-02-19 04:02:54 +00:00
cache Create a distinction between Lists of integers and Lists of OIDs, to get 2003-02-09 06:56:28 +00:00
error Fix various places where global s/NOTICE/WARNING/ was applied with too 2003-01-07 22:23:17 +00:00
fmgr More cleanup of userid to be AclId rather than Oid. 2002-12-05 04:04:51 +00:00
hash Got tired of explaining why this Assert is not wrong. 2002-10-31 21:59:32 +00:00
init Get rid of last few unadorned 'permission denied' messages. 2003-01-27 00:51:06 +00:00
mb Fix array subscript overruns identified by Yichen Xie. 2003-01-29 01:01:05 +00:00
misc Create a GUC variable REGEX_FLAVOR to control the type of regular 2003-02-06 20:25:33 +00:00
mmgr Adjust Tcl-related code to compile cleanly with Tcl 8.4 (add const modifiers as 2002-12-30 22:10:54 +00:00
sort Add new palloc0 call as merge of palloc and MemSet(0). 2002-11-13 00:39:48 +00:00
time Move responsibility for setting QuerySnapshot for utility statements 2002-10-08 17:17:19 +00:00
.cvsignore Cleanup to ensure good state of derived files in tarballs. 2000-06-09 02:38:36 +00:00
Gen_fmgrtab.sh Remove unused system table columns: 2002-07-24 19:11:14 +00:00
Makefile Remove all traces of multibyte and locale options. Clean up comments 2002-09-03 21:45:44 +00:00