pgsql-server/src backend/commands/typecmds.c b ... - Mailing list pgsql-committers

From momjian@postgresql.org (Bruce Momjian - CVS)
Subject pgsql-server/src backend/commands/typecmds.c b ...
Date
Msg-id 20030219040254.DC0E6475CC4@postgresql.org
Whole thread Raw
List pgsql-committers
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    momjian@postgresql.org    03/02/18 23:02:54

Modified files:
    src/backend/commands: typecmds.c
    src/backend/parser: parse_type.c
    src/backend/storage/lmgr: deadlock.c lmgr.c lock.c
    src/backend/utils/adt: lockfuncs.c
    src/bin/initdb : initdb.sh
    src/include/storage: lmgr.h lock.h
    src/test/regress/expected: rules.out

Log message:
    - 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


pgsql-committers by date:

Previous
From: momjian@postgresql.org (Bruce Momjian - CVS)
Date:
Subject: pgsql-server/ oc/src/sgml/libpq.sgml oc/src/sg ...
Next
From: momjian@postgresql.org (Bruce Momjian - CVS)
Date:
Subject: pgsql-server/ /configure.in rc/bin/psql/comman ...