Re: [PATCH] Allow Postgres to pick an unused port to listen

Поиск
Список
Период
Сортировка
Искать
От
Michael Paquier
Тема
Re: [PATCH] Allow Postgres to pick an unused port to listen
Дата
Msg-id
ZDcnXE3uyHdMpxB1@paquier.xyz
Ответ на
Список
Дерево обсуждения
[PATCH] Allow Postgres to pick an unused port to listen Yurii Rashkovskii <yrashk@gmail.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] Allow Postgres to pick an unused port to listen Andrew Dunstan <andrew@dunslane.net>
Re: [PATCH] Allow Postgres to pick an unused port to listen Yurii Rashkovskii <yrashk@gmail.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Yurii Rashkovskii <yrashk@gmail.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Andrew Dunstan <andrew@dunslane.net>
Re: [PATCH] Allow Postgres to pick an unused port to listen Mark Dilger <mark.dilger@enterprisedb.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Greg Stark <stark@mit.edu>
Re: [PATCH] Allow Postgres to pick an unused port to listen Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] Allow Postgres to pick an unused port to listen Yurii Rashkovskii <yrashk@gmail.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] Allow Postgres to pick an unused port to listen Yurii Rashkovskii <yrashk@gmail.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Stephen Frost <sfrost@snowman.net>
Re: [PATCH] Allow Postgres to pick an unused port to listen Yurii Rashkovskii <yrashk@gmail.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Cary Huang <cary.huang@highgo.ca>
Re: [PATCH] Allow Postgres to pick an unused port to listen Yurii Rashkovskii <yrashk@gmail.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [PATCH] Allow Postgres to pick an unused port to listen Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] Allow Postgres to pick an unused port to listen Yurii Rashkovskii <yrashk@gmail.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [PATCH] Allow Postgres to pick an unused port to listen Yurii Rashkovskii <yrashk@gmail.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Daniel Gustafsson <daniel@yesql.se>
Re: [PATCH] Allow Postgres to pick an unused port to listen Daniel Gustafsson <daniel@yesql.se>
Re: [PATCH] Allow Postgres to pick an unused port to listen Tristen Raab <tristen.raab@highgo.ca>
Re: [PATCH] Allow Postgres to pick an unused port to listen Aleksander Alekseev <aleksander@timescale.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Denis Laxalde <denis.laxalde@dalibo.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Yurii Rashkovskii <yrashk@gmail.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] Allow Postgres to pick an unused port to listen Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Allow Postgres to pick an unused port to listen Jacob Champion <jchampion@timescale.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Yurii Rashkovskii <yrashk@gmail.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Yurii Rashkovskii <yrashk@gmail.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Aleksander Alekseev <aleksander@timescale.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Yurii Rashkovskii <yrashk@gmail.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Denis Laxalde <denis.laxalde@dalibo.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Aleksander Alekseev <aleksander@timescale.com>
Re: [PATCH] Allow Postgres to pick an unused port to listen Yurii Rashkovskii <yrashk@gmail.com>
On Wed, Apr 12, 2023 at 02:24:30PM -0400, Tom Lane wrote:
> I don't really want external code knowing that line 4 is the port,
> because I foresee us breaking that someday --- what will happen
> when we want to allow one postmaster to support multiple ports?
> Maybe we'll decide that we don't have to reflect that in the
> pidfile, but let's not constrain our decisions ahead of time.

In the same fashion as something mentioned upthread, the format
portability would not matter much if all the information from the PID
file is wrapped around a pg_ctl command or something equivalent that
controls its output format, say: 
pg_ctl -D $PGDATA --format={json,what_you_want} postmaster_file

To be more precise, storage.sgml documents the format of the PID file
in what seems like the correct order for each item, some of them being
empty depending on the setup.
--
Michael
В списке pgsql-hackers по дате отправления
От: Melanie Plageman
Дата:
От: David Rowley
Дата:
FAQ