Re: Can we have a new SQL callable function to get Postmaster PID?

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Can we have a new SQL callable function to get Postmaster PID?
Дата
Msg-id YBuZbmWCZ7xnKU8R@paquier.xyz
обсуждение исходный текст
Ответ на Re: Can we have a new SQL callable function to get Postmaster PID?  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Список pgsql-hackers
On Thu, Feb 04, 2021 at 11:30:09AM +0530, Bharath Rupireddy wrote:
> But sometimes we may also have to debug postmaster code, on different
> platforms maybe. I don't know how the postmaster pid from the user
> perspective will be useful in customer environments and I can't think
> of other usages of the pg_postgres_pid().

I had the same question as Tomas in mind when reading this thread, and
the use case you are mentioning sounds limited to me.  Please note
that you can already get this information by using pg_read_file() on
postmaster.pid so I see no need for an extra function.
--
Michael

Вложения

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

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: making update/delete of inheritance trees scale better
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Removing support for COPY FROM STDIN in protocol version 2