Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
bd2ef63a
Commit
bd2ef63a
authored
Nov 05, 2007
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move txid snapshot field description table from datatype to functions section.
parent
f5f37533
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
78 deletions
+60
-78
doc/src/sgml/datatype.sgml
doc/src/sgml/datatype.sgml
+1
-72
doc/src/sgml/func.sgml
doc/src/sgml/func.sgml
+59
-6
No files found.
doc/src/sgml/datatype.sgml
View file @
bd2ef63a
<!-- $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.21
3 2007/11/05 14:51:08
momjian Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.21
4 2007/11/05 16:45:52
momjian Exp $ -->
<chapter id="datatype">
<chapter id="datatype">
<title id="datatype-title">Data Types</title>
<title id="datatype-title">Data Types</title>
...
@@ -3437,77 +3437,6 @@ SELECT to_tsquery('Fat:ab & Cats');
...
@@ -3437,77 +3437,6 @@ SELECT to_tsquery('Fat:ab & Cats');
</sect1>
</sect1>
<sect1 id="datatype-txid-snapshot">
<title>Transaction Snapshot Type</title>
<indexterm zone="datatype-txid-snapshot">
<primary>txid_snapshot</primary>
</indexterm>
<para>
The data type <type>txid_snapshot</type> stores info about transaction ID
visibility at a particular moment in time. The components are
described in <xref linkend="datatype-txid-snapshot-parts">.
</para>
<table id="datatype-txid-snapshot-parts">
<title>Snapshot components</title>
<tgroup cols="2">
<thead>
<row>
<entry>Name</entry>
<entry>Query Function</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry><type>xmin</type></entry>
<entry>txid_snapshot_xmin()</entry>
<entry>
Earliest transaction ID that is still active. All earlier
transactions will either be committed and visible, or rolled
back and dead.
</entry>
</row>
<row>
<entry><type>xmax</type></entry>
<entry>txid_snapshot_xmax()</entry>
<entry>
Next unassigned txid. All txids later than this one are
unassigned, and thus invisible.
</entry>
</row>
<row>
<entry><type>xip_list</type></entry>
<entry>txid_snapshot_xip()</entry>
<entry>
Active txids at the time of snapshot. All of them are between
xmin and xmax. A txid that is <literal>xmin <= txid <
xmax</literal> and not in this list is visible.
</entry>
</row>
</tbody>
</tgroup>
</table>
<para>
Snapshot's textual representation is <literal>[xmin]:[xmax]:[xip_list]</literal>
for example <literal>10:20:10,14,15</literal> means
<literal>xmin=10 xmax=20 xip_list=10,14,15</literal>.
</para>
<para>
Functions for getting and querying transaction ids and snapshots are
described in <xref linkend="functions-txid">.
</para>
</sect1>
<sect1 id="datatype-uuid">
<sect1 id="datatype-uuid">
<title><acronym>UUID</acronym> Type</title>
<title><acronym>UUID</acronym> Type</title>
...
...
doc/src/sgml/func.sgml
View file @
bd2ef63a
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.40
7 2007/11/05 14:51:08
momjian Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.40
8 2007/11/05 16:45:52
momjian Exp $ -->
<chapter
id=
"functions"
>
<chapter
id=
"functions"
>
<title>
Functions and Operators
</title>
<title>
Functions and Operators
</title>
...
@@ -11519,11 +11519,6 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
...
@@ -11519,11 +11519,6 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
<primary>
txid_visible_in_snapshot
</primary>
<primary>
txid_visible_in_snapshot
</primary>
</indexterm>
</indexterm>
<para>
The functions shown in
<xref
linkend=
"functions-txid-snapshot"
>
export server internal transaction info to user level.
</para>
<table
id=
"functions-txid-snapshot"
>
<table
id=
"functions-txid-snapshot"
>
<title>
Transaction IDs and snapshots
</title>
<title>
Transaction IDs and snapshots
</title>
<tgroup
cols=
"3"
>
<tgroup
cols=
"3"
>
...
@@ -11575,6 +11570,64 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
...
@@ -11575,6 +11570,64 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
which transactions were committed between two snapshots.
which transactions were committed between two snapshots.
</para>
</para>
<para>
The data type
<type>
txid_snapshot
</type>
stores info about transaction ID
visibility at a particular moment in time. The components are
described in
<xref
linkend=
"datatype-txid-snapshot-parts"
>
.
</para>
<table
id=
"datatype-txid-snapshot-parts"
>
<title>
Snapshot components
</title>
<tgroup
cols=
"2"
>
<thead>
<row>
<entry>
Name
</entry>
<entry>
Query Function
</entry>
<entry>
Description
</entry>
</row>
</thead>
<tbody>
<row>
<entry><type>
xmin
</type></entry>
<entry>
txid_snapshot_xmin()
</entry>
<entry>
Earliest transaction ID that is still active. All earlier
transactions will either be committed and visible, or rolled
back and dead.
</entry>
</row>
<row>
<entry><type>
xmax
</type></entry>
<entry>
txid_snapshot_xmax()
</entry>
<entry>
Next unassigned txid. All txids later than this one are
unassigned, and thus invisible.
</entry>
</row>
<row>
<entry><type>
xip_list
</type></entry>
<entry>
txid_snapshot_xip()
</entry>
<entry>
Active txids at the time of snapshot. All of them are between
xmin and xmax. A txid that is
<literal>
xmin
<
= txid
<
xmax
</literal>
and not in this list is visible.
</entry>
</row>
</tbody>
</tgroup>
</table>
<para>
Snapshot's textual representation is
<literal>
[xmin]:[xmax]:[xip_list]
</literal>
for example
<literal>
10:20:10,14,15
</literal>
means
<literal>
xmin=10 xmax=20 xip_list=10,14,15
</literal>
.
</para>
</sect1>
</sect1>
<sect1
id=
"functions-admin"
>
<sect1
id=
"functions-admin"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment