Re: REPOST: InitDB Failure on install

Поиск
Список
Период
Сортировка
От Andreas Pflug
Тема Re: REPOST: InitDB Failure on install
Дата
Msg-id 412A6FDA.6000603@pse-consulting.de
обсуждение исходный текст
Ответ на Re: REPOST: InitDB Failure on install  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: "Merlin Moncure"
Дата:
Сообщение: Re: REPOST: InitDB Failure on install
Следующее
От: "Farai Mbira"
Дата:
Сообщение: PostgreSQL Service