pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix corner case in autovacuum-forcing logic for multixact wrapar 3+ messages / 1 participants [nested] [flat]
* pgsql: Fix corner case in autovacuum-forcing logic for multixact wrapar @ 2015-06-19 15:41 Robert Haas <rhaas@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Robert Haas @ 2015-06-19 15:41 UTC (permalink / raw) To: pgsql-committers Fix corner case in autovacuum-forcing logic for multixact wraparound. Since find_multixact_start() relies on SimpleLruDoesPhysicalPageExist(), and that function looks only at the on-disk state, it's possible for it to fail to find a page that exists in the in-memory SLRU that has not been written yet. If that happens, SetOffsetVacuumLimit() will erroneously decide to force emergency autovacuuming immediately. We should probably fix find_multixact_start() to consider the data cached in memory as well as on the on-disk state, but that's no excuse for SetOffsetVacuumLimit() to be stupid about the case where it can no longer read the value after having previously succeeded in doing so. Report by Andres Freund. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/ed16f73c574660aa0902caa1c0adeba07f8c70a5 Modified Files -------------- src/backend/access/transam/multixact.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- 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] 3+ messages in thread
* pgsql: Fix corner case in autovacuum-forcing logic for multixact wrapar @ 2015-06-19 15:41 Robert Haas <rhaas@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Robert Haas @ 2015-06-19 15:41 UTC (permalink / raw) To: pgsql-committers Fix corner case in autovacuum-forcing logic for multixact wraparound. Since find_multixact_start() relies on SimpleLruDoesPhysicalPageExist(), and that function looks only at the on-disk state, it's possible for it to fail to find a page that exists in the in-memory SLRU that has not been written yet. If that happens, SetOffsetVacuumLimit() will erroneously decide to force emergency autovacuuming immediately. We should probably fix find_multixact_start() to consider the data cached in memory as well as on the on-disk state, but that's no excuse for SetOffsetVacuumLimit() to be stupid about the case where it can no longer read the value after having previously succeeded in doing so. Report by Andres Freund. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/8507a5b37bd95717572c5fd1863758f478fe7b10 Modified Files -------------- src/backend/access/transam/multixact.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- 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] 3+ messages in thread
* pgsql: Fix corner case in autovacuum-forcing logic for multixact wrapar @ 2015-06-19 15:41 Robert Haas <rhaas@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Robert Haas @ 2015-06-19 15:41 UTC (permalink / raw) To: pgsql-committers Fix corner case in autovacuum-forcing logic for multixact wraparound. Since find_multixact_start() relies on SimpleLruDoesPhysicalPageExist(), and that function looks only at the on-disk state, it's possible for it to fail to find a page that exists in the in-memory SLRU that has not been written yet. If that happens, SetOffsetVacuumLimit() will erroneously decide to force emergency autovacuuming immediately. We should probably fix find_multixact_start() to consider the data cached in memory as well as on the on-disk state, but that's no excuse for SetOffsetVacuumLimit() to be stupid about the case where it can no longer read the value after having previously succeeded in doing so. Report by Andres Freund. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/6199b1f90c5c3b800fa4d647e333c194ae4ee933 Modified Files -------------- src/backend/access/transam/multixact.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- 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] 3+ messages in thread
end of thread, other threads:[~2015-06-19 15:41 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-06-19 15:41 pgsql: Fix corner case in autovacuum-forcing logic for multixact wrapar Robert Haas <rhaas@postgresql.org> 2015-06-19 15:41 pgsql: Fix corner case in autovacuum-forcing logic for multixact wrapar Robert Haas <rhaas@postgresql.org> 2015-06-19 15:41 pgsql: Fix corner case in autovacuum-forcing logic for multixact wrapar Robert Haas <rhaas@postgresql.org>
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