Commit bf849af7 authored by Bruce Momjian's avatar Bruce Momjian

Document how to create advisory lock "bigint" values in SQL.

David E. Wheeler
parent 7417a8e3
......@@ -7412,7 +7412,10 @@
A <type>bigint</type> 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
to 1. The original <type>bigint</type> value can be reassembled with the
expression <literal>(classid::int::bit(64) &lt;&lt; 32 |
objid::int::bit(64))::bigint</literal>. 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. Advisory locks are local to each database,
......
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