Perhaps an option for the command:
\connect dbname /nofail
or something

>> -----Original Message-----
>> From: Matthew N. Dodd [mailto:winter@jurai.net]
>> Sent: Wednesday, October 06, 1999 6:59 AM
>> To: Peter Eisentraut
>> Cc: pgsql-hackers@postgreSQL.org
>> Subject: Re: [HACKERS] psql Week 1
>> 
>> 
>> On Tue, 5 Oct 1999, Peter Eisentraut wrote:
>> > * when \connect fails, it now keeps the previous 
>> connection (formerly
>> >   aborted program)
>> 
>> This is bad.
>> 
>> Consider some process that connects to various DBs and does 
>> stuff like
>> drop foo.
>> 
>> If connect fails assume that the user no longer wanted to be 
>> connected to
>> the old connection.
>> 
>> -- 
>> | Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | 
>> FreeBSD/NetBSD  |
>> | winter@jurai.net |       2 x '84 Volvo 245DL        | 
>> ix86,sparc,pmax |
>> | http://www.jurai.net/~winter | This Space For Rent  | 
>> ISO8802.5 4ever |
>> 
>> 
>> ************
>> 

Wed, 6 Oct 1999 09:46:23 +0200 
"Ansley, Michael" <Michael.Ansley@intec.co.za>
RE: [HACKERS] psql Week 1