mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Add SQL type xid8 to expose FullTransactionId to users.
Similar to xid, but 64 bits wide. This new type is suitable for use in various system views and administration functions. Reviewed-by: Fujii Masao <masao.fujii@oss.nttdata.com> Reviewed-by: Takao Fujii <btfujiitkp@oss.nttdata.com> Reviewed-by: Yoshikazu Imai <imai.yoshikazu@fujitsu.com> Reviewed-by: Mark Dilger <mark.dilger@enterprisedb.com> Discussion: https://postgr.es/m/20190725000636.666m5mad25wfbrri%40alap3.anarazel.de
This commit is contained in:
@ -4516,6 +4516,10 @@ INSERT INTO mytable VALUES(-1); -- fails
|
||||
<primary>regtype</primary>
|
||||
</indexterm>
|
||||
|
||||
<indexterm zone="datatype-oid">
|
||||
<primary>xid8</primary>
|
||||
</indexterm>
|
||||
|
||||
<indexterm zone="datatype-oid">
|
||||
<primary>cid</primary>
|
||||
</indexterm>
|
||||
@ -4719,6 +4723,9 @@ SELECT * FROM pg_attribute
|
||||
Another identifier type used by the system is <type>xid</type>, or transaction
|
||||
(abbreviated <abbrev>xact</abbrev>) identifier. This is the data type of the system columns
|
||||
<structfield>xmin</structfield> and <structfield>xmax</structfield>. Transaction identifiers are 32-bit quantities.
|
||||
In some contexts, a 64-bit variant <type>xid8</type> is used. Unlike
|
||||
<type>xid</type> values, <type>xid8</type> values increase strictly
|
||||
monotonically and cannot be reused in the lifetime of a database cluster.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
Reference in New Issue
Block a user