Re: BUG #7814: Rotation of the log is not carried out.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
Cc: Tsunezumi <tsunezumi(at)efficlabo(dot)com>, Kevin Grittner <kgrittn(at)mail(dot)com>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #7814: Rotation of the log is not carried out.
Date: 2013-01-24 03:11:12
Message-ID: 20196.1358997072@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Jeff Janes <jeff(dot)janes(at)gmail(dot)com> writes:
> On Tue, Jan 22, 2013 at 9:29 PM, Jeff Janes <jeff(dot)janes(at)gmail(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Georgi Georgiev 2013-01-24 03:55:31 Re: BUG #7823: PGDG packaged pgadmin3_92 removes its /usr/bin/pgadmin3 link
Previous Message Jeff Janes 2013-01-24 03:06:13 Re: Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262"

Browse pgsql-hackers by date

  From Date Subject
Next Message Craig Ringer 2013-01-24 03:28:35 Re: Visual Studio 2012 RC
Previous Message Craig Ringer 2013-01-24 03:03:55 Re: Visual Studio 2012 RC