pgsql: Dept of second thoughts: the !scan_all exit mustn't increase sca

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Dept of second thoughts: the !scan_all exit mustn't increase sca
Date: 2015-12-30 22:32:26
Message-ID: E1aEPIA-0007iT-BD@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2015-12-31 21:41:46 Re: pgsql: Further tweaking of print_aligned_vertical().
Previous Message Tom Lane 2015-12-30 22:13:24 pgsql: Avoid useless truncation attempts during VACUUM.