PostmasterPid not marked with PGDLLIMPORT

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема PostmasterPid not marked with PGDLLIMPORT
Дата
Msg-id CAB7nPqS_=14KRCDcH6NyRsW8c58J1cwXv6QCVS7YP-6tTHQ1nA@mail.gmail.com
обсуждение исходный текст
Ответы Re: PostmasterPid not marked with PGDLLIMPORT  (Craig Ringer <craig@2ndquadrant.com>)
Список pgsql-hackers
Hi all,

While hacking a background worker for Windows/Linux that is sending
signals to the Postmaster depending on the state of the server where
Postgres is running (particularly after a certain size threshold is
reached on the partition of PGDATA SIGINT is sent to PostmasterPid to
have it stop cleanly), I have noticed that PostmasterPid is not marked
as PGDLLIMPORT in miscadmin.h, so I cannot use the field directly in
this background worker for Windows... Bypassing this problem can be
done by parsing postmaster.pid but adding this extra logic is really
annoying as this requires a one-line change upstream...
Could it be possible to mark PostmasterPid with PGDLLIMPORT on HEAD
and back-branches?

Regards,
--
Michael

Вложения

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

Предыдущее
От: "Tsunakawa, Takayuki"
Дата:
Сообщение: Re: Question and suggestion about application binary compatibility policy
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: PostmasterPid not marked with PGDLLIMPORT