Re: [HACKERS] sync process names between ps and pg_stat_activity

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [HACKERS] sync process names between ps and pg_stat_activity
Дата
Msg-id CAB7nPqSFMmAatQOyZ2ZkKxFXmW-irBqUcCfrg8MmqF2++bcdJw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] sync process names between ps and pg_stat_activity  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] sync process names between ps and pg_stat_activity  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, Sep 1, 2017 at 5:33 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
>> As an aside, is there a reason why the archiver process is not included
>> in pg_stat_activity?
>
> It's not connected to shared memory.

Do you think that monitoring would be a reason sufficient to do so? My
personal opinion on the matter is that people are more and more going
to move on with pull (*) models (aka pg_receivewal and such with
replication slots) instead of push (*) models (use of
archive_command), so that monitoring of the archiver becomes less and
less useful in the long-term. And there is also pg_stat_archiver that
covers largely the gap for archive failures.

Still, one reason that could be used to connect it to shared memory is
to control the interval of time used for archive attempts, which is
now a interval hardcoded of 1s in pgarch_ArchiverCopyLoop(). Here more
flexibility would be definitely useful.

(*): this wording is from a colleague, not from me.
-- 
Michael


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

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

Предыдущее
От: Masahiko Sawada
Дата:
Сообщение: Re: [HACKERS] Commits don't block for synchronous replication
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] sync process names between ps and pg_stat_activity