pgsql: Update "don't truncate with failsafe" rationale.

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Update "don't truncate with failsafe" rationale.
Date: 2022-02-15 23:17:17
Message-ID: E1nK74P-0000f3-0k@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Update "don't truncate with failsafe" rationale.

There is a very good (though non-obvious) reason to avoid relation
truncation during a VACUUM that has triggered the failsafe mechanism,
which was missed before now. Update related comments, so this isn't
forgotten.

Reported-By: John Naylor <john(dot)naylor(at)enterprisedb(dot)com>
Discussion: https://postgr.es/m/CAFBsxsFiMPxQ-dHZ8tOgktn=+ffeJT3+GinZ4zdOGbmAnCYadA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/988ffc30637ce2b7c4ff984513f4695372602ce2

Modified Files
--------------
src/backend/access/heap/vacuumlazy.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2022-02-15 23:42:04 pgsql: Fix race condition in 028_pitr_timelines.pl test, add note to do
Previous Message Andres Freund 2022-02-15 22:46:25 Re: pgsql: Ensure that length argument of memcmp() isn't seen as negative.