Re: psql 8.4 \c repeats version banner - Mailing list pgsql-hackers

From Tom Lane
Subject Re: psql 8.4 \c repeats version banner
Date
Msg-id 12208.1262020863@sss.pgh.pa.us
Whole thread Raw
In response to psql 8.4 \c repeats version banner  (Peter Eisentraut <peter_e@gmx.net>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCH] Provide rowcount for utility SELECTs
Next
From: "Kevin Grittner"
Date:
Subject: Serializable implementation