Re: Inconvenience of pg_read_binary_file()

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Inconvenience of pg_read_binary_file()
Дата
Msg-id YuTG6kPDyA2F0Han@paquier.xyz
обсуждение исходный текст
Ответ на Re: Inconvenience of pg_read_binary_file()  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Inconvenience of pg_read_binary_file()
Список pgsql-hackers
On Fri, Jul 29, 2022 at 11:35:36PM -0400, Tom Lane wrote:
> Hm.  I considered reading PG_VERSION instead, or postmaster.pid.
> PG_VERSION would be a very boring test case, but it should certainly
> be present in $PGDATA.

PG_VERSION would be simpler.  Looking at postmaster.pid would require
a lookup at external_pid_file, and as it is not set by default you
would need to add some extra logic in the tests where
external_pid_file = NULL <=> PGDATA/postmaster.pid.
--
Michael

Вложения

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