Re: windows shared memory error

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: windows shared memory error
Дата
Msg-id 15265.1241277250@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: windows shared memory error  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> Maybe we need to look at all the places we call GetLastError(). There 
> are quite a few of them.

It would only be an issue with syscalls that have badly designed APIs
like this one.  Most of the time you know that the function has failed
and is supposed to have set the error code.

What I'm wondering about right now is whether the sleep-and-retry
logic is needed at all, if we get the error code handling straight.
A look in the archives says that Magnus added it between these two
versions of his draft patch:
http://archives.postgresql.org//pgsql-patches/2007-03/msg00250.php
http://archives.postgresql.org//pgsql-patches/2007-03/msg00263.php
without any indication of why, except that I had complained that
some error checks seemed to be missing in the original.  I wonder
if it was a misguided attempt to fix a stale-error-code problem.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: windows shared memory error
Следующее
От: Tom Lane
Дата:
Сообщение: "could not reattach to shared memory" captured in buildfarm