Re: rebellious pg stats collector (reopened case)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: rebellious pg stats collector (reopened case)
Дата
Msg-id 7721.1230564393@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: rebellious pg stats collector (reopened case)  (Laszlo Nagy <gandalf@shopzeus.com>)
Ответы Re: rebellious pg stats collector (reopened case)  (Laszlo Nagy <gandalf@shopzeus.com>)
Список pgsql-admin
Laszlo Nagy <gandalf@shopzeus.com> writes:
> maybe is it possible to change the source code, and disable the "is
> postmaster alive" check for testing?

Rather than disabling it, it'd probably be more convenient to make
any getppid value except 1 (the init process) be treated as "it's
alive".  Otherwise you'll have trouble with the collector not stopping
when you want it to.  Look into src/backend/storage/ipc/pmsignal.c:

-        return (getppid() == PostmasterPid);
+        return (getppid() != 1);

(Obviously this is a hack, but it should work on any Unixish system)

            regards, tom lane

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

Предыдущее
От: Laszlo Nagy
Дата:
Сообщение: Re: rebellious pg stats collector (reopened case)
Следующее
От: Carol Walter
Дата:
Сообщение: ssl database connection problems...