]> 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:45 +0000 (10:54 +0000)
committerMagnus Hagander <magnus@hagander.net>
Wed, 9 Jun 2010 10:54:45 +0000 (10:54 +0000)
commit8c873bbfa723e4d035847a488adbd0aa21c595b9
tree41e2843750b179211eb4a093babc838a2db1d5e2
parent5a41c317c58603e1beff5f2f31e157a30f41a3bf
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