RE: Psql meta-command conninfo+

Поиск
Список
Период
Сортировка
От Maiquel Grassi
Тема RE: Psql meta-command conninfo+
Дата
Msg-id CP8P284MB24965479BA59DF5C2CC01CA0EC462@CP8P284MB2496.BRAP284.PROD.OUTLOOK.COM
обсуждение исходный текст
Ответ на Re: Psql meta-command conninfo+  (Nathan Bossart <nathandbossart@gmail.com>)
Ответы Re: Psql meta-command conninfo+  (Nathan Bossart <nathandbossart@gmail.com>)
Список pgsql-hackers
  On Tue, Feb 06, 2024 at 03:06:05PM -0600, Nathan Bossart wrote:
  > On Tue, Feb 06, 2024 at 08:52:09PM +0000, Maiquel Grassi wrote:
  >> I made the adjustment in the code and updated the patch. I believe this
  >> is the format suggested by you all. Would this be it?
  >
  > I was thinking something more like
  >
  >   SELECT pg_catalog.current_database() AS "Database",
  >          current_user AS "User",
  >          pg_catalog.current_setting('server_version') AS "Server Version",
  >          pg_catalog.inet_server_addr() AS "Server Address",
  >          pg_catalog.current_setting('port') AS "Port",
  >          pg_catalog.inet_client_addr() AS "Client Address",
  >          pg_catalog.inet_client_port() AS "Client Port",
  >          pg_catalog.pg_backend_pid() AS "Session PID";
 
  ... although that seems to be missing items like the socket directory and
  the host.

--//--

My initial idea has always been that they should continue to appear because \conninfo+ should show all the things that \conninfo shows and add more information. I think that's the purpose of the 'plus.' Now we're on a better path than the initial one. We can still add the socket directory and the host.

Regards,
Maiquel O. Grassi.

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

Предыдущее
От: Maiquel Grassi
Дата:
Сообщение: RE: Psql meta-command conninfo+
Следующее
От: Nathan Bossart
Дата:
Сообщение: Re: Psql meta-command conninfo+