summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane2006-09-22 23:20:14 +0000
committerTom Lane2006-09-22 23:20:14 +0000
commitd40d34863e23bbfce2fbdc05e85b92e7ae321ecd (patch)
treeab2087db4b6334af3722fbc74227dacbc23c4197 /doc/src
parentbeca984e5f1c315d02064e69861be112f5a69b3d (diff)
Fix pg_locks view to call advisory locks advisory locks, while preserving
backward compatibility for anyone using the old userlock code that's now on pgfoundry --- locks from that code still show as 'userlock'.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/catalogs.sgml12
1 files changed, 7 insertions, 5 deletions
diff --git a/doc/src/sgml/catalogs.sgml b/doc/src/sgml/catalogs.sgml
index bc5592ce746..ff4fb64bcab 100644
--- a/doc/src/sgml/catalogs.sgml
+++ b/doc/src/sgml/catalogs.sgml
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/catalogs.sgml,v 2.133 2006/09/18 22:40:36 tgl Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/catalogs.sgml,v 2.134 2006/09/22 23:20:13 tgl Exp $ -->
<!--
Documentation of the system catalogs, directed toward PostgreSQL developers
-->
@@ -4890,8 +4890,9 @@
<literal>page</>,
<literal>tuple</>,
<literal>transactionid</>,
- <literal>object</>, or
- <literal>userlock</>
+ <literal>object</>,
+ <literal>userlock</>, or
+ <literal>advisory</>
</entry>
</row>
<row>
@@ -5029,14 +5030,15 @@
</para>
<para>
- User-defined locks can be acquired on keys consisting of either a single
+ Advisory locks can be acquired on keys consisting of either a single
bigint value or two integer values. A bigint key is displayed with its
high-order half in the <structfield>classid</> column, its low-order half
in the <structfield>objid</> column, and <structfield>objsubid</> equal
to 1. Integer keys are displayed with the first key in the
<structfield>classid</> column, the second key in the <structfield>objid</>
column, and <structfield>objsubid</> equal to 2. The actual meaning of
- the keys is up to the user.
+ the keys is up to the user. Advisory locks are local to each database,
+ so the <structfield>database</> column is meaningful for an advisory lock.
</para>
<para>