From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: Tsunezumi <tsunezumi@efficlabo.com>
Cc: Kevin Grittner <kgrittn@mail.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #7814: Rotation of the log is not carried out.
Date: Wed, 23 Jan 2013 22:11:12 -0500
Message-ID: <20196.1358997072@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMkU=1wqufGeocpC3=K9daiGAbR2Aw0zLRLX9cpPH_fov2huvw@mail.gmail.com>
References: <20130118202656.F1C6.65ED1D25@efficlabo.com>
<CAMkU=1wxFnXARQg+CBpPm9JWRiWKcYS7aTBU2MGux90BGWzGzg@mail.gmail.com>
<20130122214232.B4DA.65ED1D25@efficlabo.com>
<CAMkU=1zJN6-PrqSjmEbzL+S+zFWJg-iE-ZBnKDuND++r+ymnXA@mail.gmail.com>
<29401.1358897563@sss.pgh.pa.us>
<CAMkU=1xKRgg=3Fj=pz_nJprdkgXg3Rx6X9LwfF75k0Kz8F49Ag@mail.gmail.com>
<CAMkU=1wqufGeocpC3=K9daiGAbR2Aw0zLRLX9cpPH_fov2huvw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Jeff Janes <jeff.janes@gmail.com> writes:
> On Tue, Jan 22, 2013 at 9:29 PM, Jeff Janes <jeff.janes@gmail.com> wrote:
>> On Tuesday, January 22, 2013, Tom Lane wrote:
>>> So what we need on Windows is for the data transfer thread to notice
>>> when "Log_RotationSize > 0 && ftell(syslogFile) >= Log_RotationSize",
>>> and then either signal the control thread to wake up, or do the
>>> rotation itself. Probably the former is less risk.
> The attached patch fixes the problem, tested under mingw.
> This is my first effort in both Windows and in the Latch code, so committer
> beware.
Looks good, except I moved the test out of the if-block. The ereport in
the other if branch could also fill the file, in principle, and in any
case it hardly seems like we need to optimize any of the non-success
cases.
> It should be applied to 9_2 and to head.
Done. Thanks for doing this!
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, jeff.janes@gmail.com, tsunezumi@efficlabo.com, kgrittn@mail.com
Subject: Re: BUG #7814: Rotation of the log is not carried out.
In-Reply-To: <20196.1358997072@sss.pgh.pa.us>
References: <20130118202656.F1C6.65ED1D25@efficlabo.com> <CAMkU=1wxFnXARQg+CBpPm9JWRiWKcYS7aTBU2MGux90BGWzGzg@mail.gmail.com> <20130122214232.B4DA.65ED1D25@efficlabo.com> <CAMkU=1zJN6-PrqSjmEbzL+S+zFWJg-iE-ZBnKDuND++r+ymnXA@mail.gmail.com> <29401.1358897563@sss.pgh.pa.us> <CAMkU=1xKRgg=3Fj=pz_nJprdkgXg3Rx6X9LwfF75k0Kz8F49Ag@mail.gmail.com> <CAMkU=1wqufGeocpC3=K9daiGAbR2Aw0zLRLX9cpPH_fov2huvw@mail.gmail.com> <20196.1358997072@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox