pgsql: Make the walwriter close it's handle to an old xlog segment if

From: mha(at)postgresql(dot)org (Magnus Hagander)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make the walwriter close it's handle to an old xlog segment if
Date: 2010-06-09 10:54:53
Message-ID: 20100609105453.EC2FE7541D4@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Tags:
----
REL8_4_STABLE

Modified Files:
--------------
pgsql/src/backend/access/transam:
xlog.c (r1.345.2.8 -> r1.345.2.9)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/xlog.c?r1=1.345.2.8&r2=1.345.2.9)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2010-06-09 14:58:19 Re: pgsql: Fix connection leak in dblink when dblink_connect() or
Previous Message Magnus Hagander 2010-06-09 10:54:50 pgsql: Make the walwriter close it's handle to an old xlog segment if