Обсуждение: Re: REPOST: InitDB Failure on install

Поиск
Список
Период
Сортировка

Re: REPOST: InitDB Failure on install

От
"Magnus Hagander"
Дата:
>>>                 /* 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 ;-)
>
>They are the same for "low numbers", which are the ones normally
>assigned to errno. GetLastError() will return a whole lot of numbers
>that are not in the "errno supported set", but the same number is never
>used for the same thing. The net result should be that it'll return a
>somewhat-less-than-helpful error message (just stating the error code),
>but it should be able to show us if this is where the issue is. And we
>can always manually be checed during debugging. This is not
>intended for
>application, just for testing.
>
>
>>(BTW, there was some discussion around this point while you were gone.
>>Dunno if you've caught up on the list traffic yet.)
>
>Not all the lists. Apparantly not the correct one yet.

Ok. I think I'm caught up now, and I don't find anything directly
related to this. Could be because there was so much mail that I skimmed
some of it a bit too quickly... Could you provide me with a pointer?

//Magnus

Re: REPOST: InitDB Failure on install

От
Tom Lane
Дата:
"Magnus Hagander" <mha@sollentuna.net> writes:
>>> (BTW, there was some discussion around this point while you were gone.
>>> Dunno if you've caught up on the list traffic yet.)

> Ok. I think I'm caught up now, and I don't find anything directly
> related to this. Could be because there was so much mail that I skimmed
> some of it a bit too quickly... Could you provide me with a pointer?

It took some digging, but here is the thread I had in mind:
http://archives.postgresql.org/pgsql-hackers-win32/2004-08/msg00047.php
http://archives.postgresql.org/pgsql-hackers-win32/2004-08/msg00050.php

Life does get simpler if we can just do "errno = GetLastError()" but
I strongly suspect we're gonna end up wanting to do some mapping.

            regards, tom lane