Re: Patch to add Windows 7 support

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Patch to add Windows 7 support
Date: 2009-01-27 11:06:19
Message-ID: 937d27e10901270306p6b1d0df3r1b8e0c9dd0a05571@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jan 27, 2009 at 11:04 AM, Heikki Linnakangas
<heikki(dot)linnakangas(at)enterprisedb(dot)com> wrote:
> Dave Page wrote:
>>
>> The attached patch adds support for the Windows 7 beta which we've had
>> a few reports of incompatibility with. When we startup using pg_ctl on
>> Windows, we create a job object (a logical grouping of processes on
>> Windows) to which we apply various security options. One of these
>> (JOB_OBJECT_UILIMIT_HANDLES) is used to prevent our processes seeing
>> handles belonging to processes outside of our job, however, when we
>> run under the service control manager, this causes the postmaster to
>> exit immeditately for no apparent reason.
>>
>> I'm not entirely sure what has change in the SCM to cause this yet
>> (Windows 7 documentation is somewhat thin on the ground at the
>> moment), but the patch avoids theporblem by only setting
>> JOB_OBJECT_UILIMIT_HANDLES on earlier OSs.
>>
>> Tested on CVS head, but should probably be backpatched to 8.3 to avoid
>> more bug reports.
>
> No objections here, but seems we should revisit this after Windows 7 is
> released, and revert if they've fixed the underlying problem during the beta
> period.

Agreed.

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2009-01-27 11:10:45 Re: 8.4 release planning
Previous Message Heikki Linnakangas 2009-01-27 11:04:35 Re: Patch to add Windows 7 support