]> granicus.if.org Git - postgresql/commit
Make the walwriter close it's handle to an old xlog segment if it's no longer
authorMagnus Hagander <magnus@hagander.net>
Wed, 9 Jun 2010 10:54:50 +0000 (10:54 +0000)
committerMagnus Hagander <magnus@hagander.net>
Wed, 9 Jun 2010 10:54:50 +0000 (10:54 +0000)
commit644c2778d6fc59818ffe627735fce265a905a943
tree50f485e63fbacd01552a592e6aec45e7275c79ec
parentf7cb215362e9ddd2f083a404f945c343e288f4f5
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.
src/backend/access/transam/xlog.c