Re: Need help using the Patch to fix bug #2558

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: SenTnel <epwise0707(at)yahoo(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Need help using the Patch to fix bug #2558
Date: 2007-01-07 17:37:48
Message-ID: 45A12FEC.9060003@hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

SenTnel wrote:
> Hi !
>
> Tryed to install PostgreSQL 8.2 in a virtual dedicated win 2003 server, and
> ran into the installation problem you all know with initdb.
>
> I found this thread :
> http://www.nabble.com/-Patch----Fix-for-bug---2558%2C--InitDB-failed-to-run-on-windows-2003-tf2103710.html#a8164273
> , "[Patch] - Fix for bug #2558, InitDB failed to run on windows 2003 " ,
> where dror bar posted a fix to the initdb problem.
>
> My problem is that I have no clue on what to do with the patch. Im not a
> programmer or an expert, just someone who knows his ways around win server
> 2003 enviroment. Please help me install this app.
>
> Thanks!

The proper fix is not to apply this patch, it is to fix the underlying
problem, which is that you have incorrect permissions on the NUL device.

You say it's a dedicated windows 2003 server, but I assume it's not
freshly installed. There are known third-party packages (including from
Microsoft themselves) that break the permissions on the NUL device.
Unfortunately, I've only seen the list of known such application under
NDA, so I can't tell you what applications are on it - though you can
get that from Microsoft if you have a support agreement.

There may be a workaround using subinacl to reset the permissions -
should be in the archives. The other fix is to uninstall the affected
application, or re-install the OS to get it clean.

//Magnus

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Simon Riggs 2007-01-07 18:04:58 Re: [HACKERS] COPY with no WAL, in certain circumstances
Previous Message Tom Lane 2007-01-07 17:14:06 Re: [HACKERS] COPY with no WAL, in certain circumstances