Make the walwriter close it's handle to an old xlog segment if it's no longer

Magnus Hagander <magnus@hagander.net>

Commit: 644c2778d6fc59818ffe627735fce265a905a943
Author: Magnus Hagander <magnus@hagander.net>
Date: 2010-06-09T10:54:50Z
Releases: 8.3.12
Make the walwriter close it's handle to an old xlog segment if it's no longer
the current one. Not doing this would leave the walwriter with a handle to a
deleted file if there was nothing for it to do for a long period of time,
preventing the file from  being completely removed.

Reported by Tollef Fog Heen, and thanks to Heikki for some hand-holding with
the patch.

Files

PathChange+/−
src/backend/access/transam/xlog.c modified +14 −2