pgsql: Dept of second thoughts: the !scan_all exit mustn't increase sca - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Dept of second thoughts: the !scan_all exit mustn't increase sca
Date
Msg-id E1aEPIA-0007iT-BD@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Dept of second thoughts: the !scan_all exit mustn't increase scanned_pages.

In the extreme edge case where contended pages are the only ones that
escape being scanned, the previous commit would have allowed us to think
that relfrozenxid could be advanced, which is exactly wrong.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e5d06f2b12a7c75f2b0c7fd2055a14efaa2b59ec

Modified Files
--------------
src/backend/commands/vacuumlazy.c |   14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Avoid useless truncation attempts during VACUUM.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix ALTER OPERATOR to update dependencies properly.