On Thu, May 15, 2008 at 03:21:37PM -0400, Bruce Momjian wrote:
> Alvaro Herrera wrote:
> > I'm OK with thisG but please move the printSSLInfo() call just before
> > echoing the help line.
> Oh, good catch, moved. I also moved the Win32 code page message up too.
> Patch attached.
> I hacked up an example that shows both SSL and Win32 code page messages:
I believe there's a bug in this patch, namely that the warnings when
there's a server-client mismatch only appear at startup time. This is
a pretty clear POLA violation, IMHO.
On my laptop, I have two pg instances running: 8.3.0 on port 5432, CVS
TIP on 2225.
Here's what I get if I invoke psql from the command line:
$ psql -p 5432 postgres
Welcome to psql 8.4devel (server 8.3.0), the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit
WARNING: You are connected to a server with major version 8.3,
but your psql client is major version 8.4. Some backslash commands,
such as \d, might not work properly.
Here's what I get if I use \c, having connected to CVS TIP first:
[EMAIL PROTECTED] \c - - - 5432
You are now connected to database "postgres" at port "5432".
I think that the warning should be consistently there on connect
instead of just at program start.
Not coincidentally, moving all the checks into one spot, i.e. making
startup.c and command.c call and test the same things to connect to a
database, advances my Evil Plan™ to make more interesting things
happen when switching versions :)
David Fetter <[EMAIL PROTECTED]> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: [EMAIL PROTECTED]
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
Sent via pgsql-patches mailing list (email@example.com)
To make changes to your subscription: