Re: Optional postgres database not so optional in 8.1

Поиск
Список
Период
Сортировка
От Philip Yarra
Тема Re: Optional postgres database not so optional in 8.1
Дата
Msg-id 200511180925.04668.philip@utiba.com
обсуждение исходный текст
Ответ на Re: Optional postgres database not so optional in 8.1  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Improving count(*)
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Improving count(*)