Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TyDDk-0005f6-62 for pgsql-bugs@arkaria.postgresql.org; Thu, 24 Jan 2013 03:11:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TyDDj-0006vL-9N for pgsql-bugs@arkaria.postgresql.org; Thu, 24 Jan 2013 03:11:19 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TyDDi-0006vG-JS for pgsql-bugs@postgresql.org; Thu, 24 Jan 2013 03:11:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TyDDh-0004ok-JE for pgsql-bugs@postgresql.org; Thu, 24 Jan 2013 03:11:17 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r0O3BCqJ020197; Wed, 23 Jan 2013 22:11:12 -0500 (EST) From: Tom Lane To: Jeff Janes cc: Tsunezumi , Kevin Grittner , "pgsql-bugs@postgresql.org" Subject: Re: BUG #7814: Rotation of the log is not carried out. In-reply-to: References: <20130118202656.F1C6.65ED1D25@efficlabo.com> <20130122214232.B4DA.65ED1D25@efficlabo.com> <29401.1358897563@sss.pgh.pa.us> Comments: In-reply-to Jeff Janes message dated "Wed, 23 Jan 2013 18:26:15 -0800" Date: Wed, 23 Jan 2013 22:11:12 -0500 Message-ID: <20196.1358997072@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Jeff Janes writes: > On Tue, Jan 22, 2013 at 9:29 PM, Jeff Janes 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