Re: Optional postgres database not so optional in 8.1 - Mailing list pgsql-hackers

From Philip Yarra
Subject Re: Optional postgres database not so optional in 8.1
Date
Msg-id 200511180925.04668.philip@utiba.com
Whole thread Raw
In response to Re: Optional postgres database not so optional in 8.1  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Fri, 18 Nov 2005 05:29 am, Tom Lane wrote:
> It does seem a bit inconsistent that psql wouldn't connect to the
> specified database in order to do -l, if one is specified.
> Anyone want to look and see if it's easy to change?

It also breaks the ability to psql -l against older installations: e.g. this 
is psql 8.1 trying to list databases on a 8.0.3 DB server:

$ psql -l -hdev2 -dtemplate1
psql: FATAL:  database "postgres" does not exist

I'm told we never promise to make \l and \d work across client/server 
versions, but if this is related, it'd be nice if the fix made this work 
again too.

Regards, Philip.
-- 

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

-----------------
Utiba Pty Ltd 
This message has been scanned for viruses and
dangerous content by Utiba mail server and is 
believed to be clean.



pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Improving count(*)
Next
From: "Kevin Grittner"
Date:
Subject: Re: Improving count(*)