summaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.source
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-07-23 01:30:09 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-07-23 01:30:09 +0300
commitb7551339dfde58682dfd9f32f6cea27491da6463 (patch)
treea53dd3dab790ef05dde946cee0c8028a2f1a08cc /src/tutorial/funcs.source
parentb6e7780346bae5fe07bd4631d355e692e1a8d006 (diff)
Fix off-by-one error in calculating subtrans/multixact truncation point.
If there were no subtransactions (or multixacts) active, we would calculate the oldestxid == next xid. That's correct, but if next XID happens to be on the next pg_subtrans (pg_multixact) page, the page does not exist yet, and SimpleLruTruncate will produce an "apparent wraparound" warning. The warning is harmless in this case, but looks very alarming to users. Backpatch to all supported versions. Patch and analysis by Thomas Munro.
Diffstat (limited to 'src/tutorial/funcs.source')
0 files changed, 0 insertions, 0 deletions