Re: semaphore usage "port based"?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: semaphore usage "port based"?
Дата
Msg-id 25526.1144017388@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: semaphore usage "port based"?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: semaphore usage "port based"?  ("Marc G. Fournier" <scrappy@postgresql.org>)
Список pgsql-hackers
I wrote:
> Look at IpcSemaphoreCreate and InternalIpcSemaphoreCreate in
> src/backend/port/sysv_sema.c.  It may be worth stepping through them
> with gdb to see what the semget calls are returning.

BTW, even before doing that, you should look at "ipcs -s" output to try
to get a clue what's going on.  The EINVAL failures may be because the
second postmaster to start deletes the semaphores created by the first
one.  You could easily see this happening in before-and-after ipcs data
if so.

strace'ing startup of the second postmaster is another approach that
might be easier than gdb'ing.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: semaphore usage "port based"?
Следующее
От: "Jonah H. Harris"
Дата:
Сообщение: Re: pg_class catalog question...