From c1129a14e192755e001ba7899d4a9ca216e4ec3c Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 15 Jul 2011 13:12:36 -0400 Subject: [PATCH] Doc clarification for pg_locks columns. Florian Pflug --- doc/src/sgml/catalogs.sgml | 40 ++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/doc/src/sgml/catalogs.sgml b/doc/src/sgml/catalogs.sgml index c5851afefa8..33be5d0979b 100644 --- a/doc/src/sgml/catalogs.sgml +++ b/doc/src/sgml/catalogs.sgml @@ -6928,9 +6928,9 @@ oid pg_database.oid - OID of the database in which the object exists, or - zero if the object is a shared object, or - null if the lock object is on a transaction ID + OID of the database in which the lock target exists, or + zero if the target is a shared object, or + null if the target is a transaction ID @@ -6938,8 +6938,8 @@ oid pg_class.oid - OID of the relation, or null if the lock object is not - on a relation or part of a relation + OID of the relation targeted by the lock, or null if the target is not + a relation or part of a relation @@ -6947,8 +6947,8 @@ integer - Page number within the relation, or null if the lock object - is not on a tuple or relation page + Page number targeted by the lock within the relation, + or null if the target is not a relation page or tuple @@ -6956,8 +6956,8 @@ smallint - Tuple number within the page, or null if the lock object is not - on a tuple + Tuple number targeted by the lock within the page, + or null if the target is not a tuple @@ -6965,8 +6965,8 @@ text - Virtual ID of a transaction lock, or null if the lock object is not - on a virtual transaction ID + Virtual ID of the transaction targeted by the lock, + or null if the target is not a virtual transaction ID @@ -6974,7 +6974,8 @@ xid - ID of a transaction lock, or null if the lock object is not on a transaction ID + ID of the transaction targeted by the lock, + or null if the target is not a transaction ID @@ -6982,8 +6983,8 @@ oid pg_class.oid - OID of the system catalog containing the object, or null if the - lock object is not on a general database object. + OID of the system catalog containing the lock target, or null if the + target is not a general database object @@ -6991,8 +6992,8 @@ oid any OID column - OID of the object within its system catalog, or null if the - lock object is not on a general database object. + OID of the lock target within its system catalog, or null if the + target is not a general database object. For advisory locks it is used to distinguish the two key spaces (1 for an int8 key, 2 for two int4 keys). @@ -7002,10 +7003,11 @@ smallint - For a table column, this is the column number (the + Column number targeted by the lock (the classid and objid refer to the - table itself). For all other object types, this column is - zero. Null if the lock object is not on a general database object. + table itself), + or zero if the target is some other general database object, + or null if the target is not a general database object -- 2.39.5