Re: Admin functions contrib - Mailing list pgsql-patches

From Andreas Pflug
Subject Re: Admin functions contrib
Date
Msg-id 410B7D96.70508@pse-consulting.de
Whole thread Raw
In response to Re: Admin functions contrib  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Tom Lane wrote:
>>>Do people want the server file logging/rotating patch applied if it is
>>>Unix-only?  Right now the patch is ifdef'ed so Win32 use of it is
>>>disabled.
>
>
> I'm slightly worried that we might be painting ourselves into a corner,
> ie implementing functionality that will never work on Windows.
>
> Personally, of course, I won't care if it never works on Windows.  But
> I suspect there are some out there who do care ;-).  It might be better
> to wait till we're sure there's a reasonable implementation path for
> Windows.

Actually, I believe the implementation I did first (having all processes
append to the logfile themselves) would have worked for win32 too.
As long as you don't impose linux-centric limitations on win32
implementations, there certainly *are* solutions to the problem.

A very reasonable way would be to have the win32_signal_waiter thread
not only wait for the child terminating, but also checking the pipe.
This is certainly *the* recommended win32 way.

Regards,
Andreas

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Admin functions contrib
Next
From: "Magnus Hagander"
Date:
Subject: Re: win32 timezone map