Document how to create advisory lock "bigint" values in SQL.
authorBruce Momjian
Tue, 28 Aug 2012 02:36:37 +0000 (22:36 -0400)
committerBruce Momjian
Tue, 28 Aug 2012 02:36:48 +0000 (22:36 -0400)
David E. Wheeler

doc/src/sgml/catalogs.sgml

index b100a426e484d9f499a086bba5de074132636529..bf568f181137a940081ca171b3a9169351b95ff6 100644 (file)
    A bigint key is displayed with its
    high-order half in the classid column, its low-order half
    in the objid column, and objsubid equal
-   to 1.  Integer keys are displayed with the first key in the
+   to 1. The original bigint value can be reassembled with the
+   expression (classid::int::bit(64) << 32 |
+   objid::int::bit(64))::bigint. Integer keys are displayed with the
+   first key in the
    classid column, the second key in the objid
    column, and objsubid equal to 2.  The actual meaning of
    the keys is up to the user.  Advisory locks are local to each database,