pgsql: Fix unlinking of SLRU segments. - Mailing list pgsql-committers

From Thomas Munro
Subject pgsql: Fix unlinking of SLRU segments.
Date
Msg-id E1kaTui-00078l-NP@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix unlinking of SLRU segments.

Commit dee663f7 intended to drop any queued up fsync requests before
unlinking segment files, but missed a code path.  Fix, by centralizing
the forget-and-unlink code into a single function.

Reported-by: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Discussion: https://postgr.es/m/20201104013205.icogbi773przyny5%40development

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c732c3f8c122009de373cff9b44b5cf0992ba1bf

Modified Files
--------------
src/backend/access/transam/slru.c | 44 ++++++++++++++++-----------------------
1 file changed, 18 insertions(+), 26 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Remove underflow error in float division with infinite divisor.
Next
From: Peter Geoghegan
Date:
Subject: pgsql: Fix nbtree cleanup-only VACUUM stats inaccuracies.