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
e7f40975
Commit
e7f40975
authored
Feb 17, 2014
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve documentation about multixact IDs.
Per gripe from Josh Berkus.
parent
6ef32542
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
12 deletions
+17
-12
doc/src/sgml/maintenance.sgml
doc/src/sgml/maintenance.sgml
+12
-9
doc/src/sgml/release-9.3.sgml
doc/src/sgml/release-9.3.sgml
+5
-3
No files found.
doc/src/sgml/maintenance.sgml
View file @
e7f40975
...
...
@@ -616,13 +616,16 @@ HINT: Stop the postmaster and vacuum that database in single-user mode.
</indexterm>
<para>
<firstterm>Multixacts</> are used to implement row locking by
multiple transactions: since there is limited space in the tuple
header to store lock information, that information is stored as a
multixact separately in the <filename>pg_multixact</> subdirectory,
and only its ID is in the <structfield>xmax</> field
in the tuple header.
Similar to transaction IDs, multixact IDs are implemented as a
<firstterm>Multixact IDs</> are used to support row locking by
multiple transactions. Since there is only limited space in a tuple
header to store lock information, that information is encoded as
a <quote>multiple transaction ID</>, or multixact ID for short,
whenever there is more than one transaction concurrently locking a
row. Information about which transaction IDs are included in any
particular multixact ID is stored separately in
the <filename>pg_multixact</> subdirectory, and only the multixact ID
appears in the <structfield>xmax</> field in the tuple header.
Like transaction IDs, multixact IDs are implemented as a
32-bit counter and corresponding storage, all of which requires
careful aging management, storage cleanup, and wraparound handling.
</para>
...
...
@@ -634,8 +637,8 @@ HINT: Stop the postmaster and vacuum that database in single-user mode.
is replaced by a different value, which can be the zero value, a single
transaction ID, or a newer multixact ID. For each table,
<structname>pg_class</>.<structfield>relminmxid</> stores the oldest
possible
value still stored in any tuple of that table. Every time this
value is older than
possible
multixact ID still appearing in any tuple of that table.
If this
value is older than
<xref linkend="guc-vacuum-multixact-freeze-table-age">, a whole-table
scan is forced. Whole-table <command>VACUUM</> scans, regardless of
what causes them, enable advancing the value for that table.
...
...
doc/src/sgml/release-9.3.sgml
View file @
e7f40975
...
...
@@ -64,9 +64,11 @@ Branch: REL9_3_STABLE [8e9a16ab8] 2013-12-16 11:29:51 -0300
</para>
<para>
The method for tuple freezing was unable to handle some cases
involving freezing of <quote>multixact</> IDs, with the practical
effect that shared row-level locks might be forgotten once old enough.
The logic for tuple freezing was unable to handle some cases involving
freezing of
<link linkend="vacuum-for-multixact-wraparound"><firstterm>multixact</>
IDs</link>, with the practical effect that shared row-level locks
might be forgotten once old enough.
</para>
<para>
...
...
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