Re: REPOST: InitDB Failure on install - Mailing list pgsql-hackers-win32

From Andreas Pflug
Subject Re: REPOST: InitDB Failure on install
Date
Msg-id 412A6FDA.6000603@pse-consulting.de
Whole thread Raw
In response to Re: REPOST: InitDB Failure on install  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers-win32
Tom Lane wrote:
> "Magnus Hagander" <mha@sollentuna.net> writes:
>
>>                /* Unable to get shared memory */
>>+               errno = GetLastError();
>
>
> Aren't you going to need a mapping function to convert Windows error
> codes to errno numbers?  Don't tell me Microsoft was smart enough to
> make them the same ;-)

How about the idea to set errno to a special value after all non-posix
calls, which makes ereport examine/preserve GetLastError() instead?

Regards,
Andreas

pgsql-hackers-win32 by date:

Previous
From: "Merlin Moncure"
Date:
Subject: Re: REPOST: InitDB Failure on install
Next
From: "Farai Mbira"
Date:
Subject: PostgreSQL Service