Patch to add Windows 7 support - Mailing list pgsql-hackers

From Dave Page
Subject Patch to add Windows 7 support
Date
Msg-id 937d27e10901270234x49bdf108t1a07be2ea216bcb8@mail.gmail.com
Whole thread Raw
Responses Re: Patch to add Windows 7 support  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Re: Patch to add Windows 7 support  (Peter Eisentraut <peter_e@gmx.net>)
Re: Patch to add Windows 7 support  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
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.

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

Attachment

pgsql-hackers by date:

Previous
From: Bernd Helmle
Date:
Subject: Re: [COMMITTERS] pgsql: Automatic view update rules Bernd Helmle
Next
From: Rick Gigger
Date:
Subject: Re: 8.4 release planning