pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix off-by-one error in calculating subtrans/multixact truncatio 7+ messages / 1 participants [nested] [flat]
* pgsql: Fix off-by-one error in calculating subtrans/multixact truncatio @ 2015-07-22 22:31 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 7+ messages in thread From: Heikki Linnakangas @ 2015-07-22 22:31 UTC (permalink / raw) To: pgsql-committers 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. Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/84330d0c1fd3dd76f95ce82dd5856a9de52b5b23 Modified Files -------------- src/backend/access/transam/multixact.c | 14 ++++++++++---- src/backend/access/transam/subtrans.c | 7 ++++++- src/include/access/multixact.h | 1 + 3 files changed, 17 insertions(+), 5 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix off-by-one error in calculating subtrans/multixact truncatio @ 2015-07-22 22:31 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 7+ messages in thread From: Heikki Linnakangas @ 2015-07-22 22:31 UTC (permalink / raw) To: pgsql-committers 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. Branch ------ REL9_1_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/e54e17aca2f57b4f0ccad3af9d85c3ab12efe668 Modified Files -------------- src/backend/access/transam/multixact.c | 14 ++++++++++---- src/backend/access/transam/subtrans.c | 7 ++++++- src/include/access/multixact.h | 1 + 3 files changed, 17 insertions(+), 5 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix off-by-one error in calculating subtrans/multixact truncatio @ 2015-07-22 22:31 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 7+ messages in thread From: Heikki Linnakangas @ 2015-07-22 22:31 UTC (permalink / raw) To: pgsql-committers 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. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/6ae9a021893b5cd24e1d7e8a1a07854d33af9990 Modified Files -------------- src/backend/access/transam/multixact.c | 12 ++++++++++-- src/backend/access/transam/subtrans.c | 7 ++++++- 2 files changed, 16 insertions(+), 3 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix off-by-one error in calculating subtrans/multixact truncatio @ 2015-07-22 22:31 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 7+ messages in thread From: Heikki Linnakangas @ 2015-07-22 22:31 UTC (permalink / raw) To: pgsql-committers 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. Branch ------ REL9_0_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/40ad7822019a2cf8b9e0d5bd770490af7b56e652 Modified Files -------------- src/backend/access/transam/multixact.c | 14 ++++++++++---- src/backend/access/transam/subtrans.c | 7 ++++++- src/include/access/multixact.h | 1 + 3 files changed, 17 insertions(+), 5 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix off-by-one error in calculating subtrans/multixact truncatio @ 2015-07-22 22:31 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 7+ messages in thread From: Heikki Linnakangas @ 2015-07-22 22:31 UTC (permalink / raw) To: pgsql-committers 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. Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/a9b3a22aa18345451a20696fe272b6e02f5a2bbb Modified Files -------------- src/backend/access/transam/multixact.c | 13 ++++++++++--- src/backend/access/transam/subtrans.c | 7 ++++++- 2 files changed, 16 insertions(+), 4 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix off-by-one error in calculating subtrans/multixact truncatio @ 2015-07-22 22:31 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 7+ messages in thread From: Heikki Linnakangas @ 2015-07-22 22:31 UTC (permalink / raw) To: pgsql-committers 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. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/b7551339dfde58682dfd9f32f6cea27491da6463 Modified Files -------------- src/backend/access/transam/multixact.c | 12 ++++++++++-- src/backend/access/transam/subtrans.c | 7 ++++++- 2 files changed, 16 insertions(+), 3 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix off-by-one error in calculating subtrans/multixact truncatio @ 2015-07-22 22:31 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 7+ messages in thread From: Heikki Linnakangas @ 2015-07-22 22:31 UTC (permalink / raw) To: pgsql-committers 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. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/766dcfb16ca385274d510eaed01724bb3836efdd Modified Files -------------- src/backend/access/transam/multixact.c | 13 ++++++++++--- src/backend/access/transam/subtrans.c | 7 ++++++- 2 files changed, 16 insertions(+), 4 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2015-07-22 22:31 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-07-22 22:31 pgsql: Fix off-by-one error in calculating subtrans/multixact truncatio Heikki Linnakangas <heikki.linnakangas@iki.fi> 2015-07-22 22:31 pgsql: Fix off-by-one error in calculating subtrans/multixact truncatio Heikki Linnakangas <heikki.linnakangas@iki.fi> 2015-07-22 22:31 pgsql: Fix off-by-one error in calculating subtrans/multixact truncatio Heikki Linnakangas <heikki.linnakangas@iki.fi> 2015-07-22 22:31 pgsql: Fix off-by-one error in calculating subtrans/multixact truncatio Heikki Linnakangas <heikki.linnakangas@iki.fi> 2015-07-22 22:31 pgsql: Fix off-by-one error in calculating subtrans/multixact truncatio Heikki Linnakangas <heikki.linnakangas@iki.fi> 2015-07-22 22:31 pgsql: Fix off-by-one error in calculating subtrans/multixact truncatio Heikki Linnakangas <heikki.linnakangas@iki.fi> 2015-07-22 22:31 pgsql: Fix off-by-one error in calculating subtrans/multixact truncatio Heikki Linnakangas <heikki.linnakangas@iki.fi>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox