aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/tablesample/tablesample.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-07-23 01:29:59 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-07-23 01:29:59 +0300
commit766dcfb16ca385274d510eaed01724bb3836efdd (patch)
tree99cee88ec981c2c5bba55f969097459558bba5d0 /src/backend/access/tablesample/tablesample.c
parent46d0a9bfac3d5221702318cc1cf119221d729c84 (diff)
downloadpostgresql-766dcfb16ca385274d510eaed01724bb3836efdd.tar.gz
postgresql-766dcfb16ca385274d510eaed01724bb3836efdd.zip
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/backend/access/tablesample/tablesample.c')
0 files changed, 0 insertions, 0 deletions