Re: psql 8.4 \c repeats version banner

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: psql 8.4 \c repeats version banner
Дата
Msg-id 12208.1262020863@sss.pgh.pa.us
обсуждение исходный текст
Ответ на psql 8.4 \c repeats version banner  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> In 8.3, running \c from a file prints something like
> You are now connected to database "postgres".

> In 8.4 it prints

> psql (8.4.1)
> You are now connected to database "postgres".

> Is it intentional/sensible to repeat the startup banner every time the
> connection changes, or was this unintentionally introduced while the
> startup banner was reshuffled in 8.4?

I think the argument was that if you are connecting to a new server, the
server version number could change, and so it is useful to repeat that
line to have a place to display the possible version mismatch indicator.
Maybe we could suppress it if the third and fourth arguments are
omitted, but I'm not sure it's worth the trouble.

The original design didn't have the third and fourth arguments, hence no
possibility of server change.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] Provide rowcount for utility SELECTs
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Serializable implementation