File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
- <!-- $PostgreSQL: pgsql/doc/src/sgml/catalogs.sgml,v 2.161 2008/01/31 18:40:02 tgl Exp $ -->
1
+ <!-- $PostgreSQL: pgsql/doc/src/sgml/catalogs.sgml,v 2.162 2008/03/06 18:49:32 momjian Exp $ -->
2
2
<!--
3
3
Documentation of the system catalogs, directed toward PostgreSQL developers
4
4
-->
5691
5691
<entry>any OID column</entry>
5692
5692
<entry>
5693
5693
OID of the object within its system catalog, or NULL if the
5694
- object is not a general database object
5694
+ object is not a general database object.
5695
+ For advisory locks it is used to distinguish the two key
5696
+ spaces (<literal>1</> for an int8 key, <literal>2</> for two
5697
+ int4 keys).
5695
5698
</entry>
5696
5699
</row>
5697
5700
<row>
Original file line number Diff line number Diff line change 1
- <!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.422 2008/03/03 18:09:02 momjian Exp $ -->
1
+ <!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.423 2008/03/06 18:49:32 momjian Exp $ -->
2
2
3
3
<chapter id="functions">
4
4
<title>Functions and Operators</title>
@@ -12378,7 +12378,8 @@ SELECT (pg_stat_file('filename')).modification;
12378
12378
<para>
12379
12379
<function>pg_advisory_lock</> locks an application-defined resource,
12380
12380
which can be identified either by a single 64-bit key value or two
12381
- 32-bit key values (note that these two key spaces do not overlap). If
12381
+ 32-bit key values (note that these two key spaces do not overlap).
12382
+ The key type is specified in <literal>pg_locks.objid</>. If
12382
12383
another session already holds a lock on the same resource, the
12383
12384
function will wait until the resource becomes available. The lock
12384
12385
is exclusive. Multiple lock requests stack, so that if the same resource
You can’t perform that action at this time.
0 commit comments