git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 46d0a9b) | patch
Fix off-by-one error in calculating subtrans/multixact truncation point.
2015年7月22日 22:29:59 +0000 (01:29 +0300)
2015年7月22日 22:29:59 +0000 (01:29 +0300)
commit 766dcfb16ca385274d510eaed01724bb3836efdd
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.
src/backend/access/transam/multixact.c diff | blob | blame | history
src/backend/access/transam/subtrans.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /