Commit c1129a14 authored by Bruce Momjian's avatar Bruce Momjian

Doc clarification for pg_locks columns.

Florian Pflug
parent 8d260911
...@@ -6928,9 +6928,9 @@ ...@@ -6928,9 +6928,9 @@
<entry><type>oid</type></entry> <entry><type>oid</type></entry>
<entry><literal><link linkend="catalog-pg-database"><structname>pg_database</structname></link>.oid</literal></entry> <entry><literal><link linkend="catalog-pg-database"><structname>pg_database</structname></link>.oid</literal></entry>
<entry> <entry>
OID of the database in which the object exists, or OID of the database in which the lock target exists, or
zero if the object is a shared object, or zero if the target is a shared object, or
null if the lock object is on a transaction ID null if the target is a transaction ID
</entry> </entry>
</row> </row>
<row> <row>
...@@ -6938,8 +6938,8 @@ ...@@ -6938,8 +6938,8 @@
<entry><type>oid</type></entry> <entry><type>oid</type></entry>
<entry><literal><link linkend="catalog-pg-class"><structname>pg_class</structname></link>.oid</literal></entry> <entry><literal><link linkend="catalog-pg-class"><structname>pg_class</structname></link>.oid</literal></entry>
<entry> <entry>
OID of the relation, or null if the lock object is not OID of the relation targeted by the lock, or null if the target is not
on a relation or part of a relation a relation or part of a relation
</entry> </entry>
</row> </row>
<row> <row>
...@@ -6947,8 +6947,8 @@ ...@@ -6947,8 +6947,8 @@
<entry><type>integer</type></entry> <entry><type>integer</type></entry>
<entry></entry> <entry></entry>
<entry> <entry>
Page number within the relation, or null if the lock object Page number targeted by the lock within the relation,
is not on a tuple or relation page or null if the target is not a relation page or tuple
</entry> </entry>
</row> </row>
<row> <row>
...@@ -6956,8 +6956,8 @@ ...@@ -6956,8 +6956,8 @@
<entry><type>smallint</type></entry> <entry><type>smallint</type></entry>
<entry></entry> <entry></entry>
<entry> <entry>
Tuple number within the page, or null if the lock object is not Tuple number targeted by the lock within the page,
on a tuple or null if the target is not a tuple
</entry> </entry>
</row> </row>
<row> <row>
...@@ -6965,8 +6965,8 @@ ...@@ -6965,8 +6965,8 @@
<entry><type>text</type></entry> <entry><type>text</type></entry>
<entry></entry> <entry></entry>
<entry> <entry>
Virtual ID of a transaction lock, or null if the lock object is not Virtual ID of the transaction targeted by the lock,
on a virtual transaction ID or null if the target is not a virtual transaction ID
</entry> </entry>
</row> </row>
<row> <row>
...@@ -6974,7 +6974,8 @@ ...@@ -6974,7 +6974,8 @@
<entry><type>xid</type></entry> <entry><type>xid</type></entry>
<entry></entry> <entry></entry>
<entry> <entry>
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
</entry> </entry>
</row> </row>
<row> <row>
...@@ -6982,8 +6983,8 @@ ...@@ -6982,8 +6983,8 @@
<entry><type>oid</type></entry> <entry><type>oid</type></entry>
<entry><literal><link linkend="catalog-pg-class"><structname>pg_class</structname></link>.oid</literal></entry> <entry><literal><link linkend="catalog-pg-class"><structname>pg_class</structname></link>.oid</literal></entry>
<entry> <entry>
OID of the system catalog containing the object, or null if the OID of the system catalog containing the lock target, or null if the
lock object is not on a general database object. target is not a general database object
</entry> </entry>
</row> </row>
<row> <row>
...@@ -6991,8 +6992,8 @@ ...@@ -6991,8 +6992,8 @@
<entry><type>oid</type></entry> <entry><type>oid</type></entry>
<entry>any OID column</entry> <entry>any OID column</entry>
<entry> <entry>
OID of the object within its system catalog, or null if the OID of the lock target within its system catalog, or null if the
lock object is not on a general database object. target is not a general database object.
For advisory locks it is used to distinguish the two key For advisory locks it is used to distinguish the two key
spaces (1 for an int8 key, 2 for two int4 keys). spaces (1 for an int8 key, 2 for two int4 keys).
</entry> </entry>
...@@ -7002,10 +7003,11 @@ ...@@ -7002,10 +7003,11 @@
<entry><type>smallint</type></entry> <entry><type>smallint</type></entry>
<entry></entry> <entry></entry>
<entry> <entry>
For a table column, this is the column number (the Column number targeted by the lock (the
<structfield>classid</> and <structfield>objid</> refer to the <structfield>classid</> and <structfield>objid</> refer to the
table itself). For all other object types, this column is table itself),
zero. Null if the lock object is not on a general database object. or zero if the target is some other general database object,
or null if the target is not a general database object
</entry> </entry>
</row> </row>
<row> <row>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment