Re: [COMMITTERS] pgsql: Add \conninfo command to psql, to show current connection info.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [COMMITTERS] pgsql: Add \conninfo command to psql, to show current connection info.
Дата
Msg-id 23611.1280857566@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: [COMMITTERS] pgsql: Add \conninfo command to psql, to show current connection info.  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Re: [COMMITTERS] pgsql: Add \conninfo command to psql, to show current connection info.  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
rhaas@postgresql.org (Robert Haas) writes:
> Add \conninfo command to psql, to show current connection info.
> David Christensen. Reviewed by Steve Singer.  Some further changes by me.

Looking at the output from this command:

regression=# \conninfo 
You are connected to database "regression" via local socket in "/tmp" at port "5432" as user "postgres".

This seems a bit awkwardly phrased.  I think it would read better if the
ordering was changed to

You are connected to database "regression" as user "postgres" via local socket in "/tmp" at port "5432".

I can't put my finger on the reason why the current ordering seems like
awkward English, but I can give a couple of concrete arguments for
changing it:

1. This way would match the argument ordering for \connect,
which in case you've forgotten is dbname user host port.

2. At least to me, this seems closer to the relative importance of the
items.

Comments, objections?
        regards, tom lane


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

Предыдущее
От: Boszormenyi Zoltan
Дата:
Сообщение: Re: ECPG dynamic cursor fix for UPDATE/DELETE ... WHERE CURRENT OF :curname
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Add \conninfo command to psql, to show current connection info.