Re: your mail - Mailing list pgsql-hackers

From fgschwindt@qnx.com
Subject Re: your mail
Date
Msg-id 199803072105.QAA19140@hub.org
Whole thread Raw
List pgsql-hackers
> >   It would be a good idea, IMHO, that if psql is called alone (without
> > database nor any parameter), instead of try to connect to database 'user'
> > starts interactively without connection.  Then, simple calling "\c dbname"
> > would connect the user to the desired database.  What you think?
> >   Cheers,
>
> This seems like a good idea.  Any comments?
>

  When I was doing my own changes in the source to achieve this behavior, I've
noticed that in several places exit is called without free'ing the PGconn
pointer, the prompt and other things, specially when malloc fails and when
psql cannot establish the connection to a new database.
  It's not a great thing, but it'd be good to fix it.
  Cheers,

  Federico.

--
Before humanity was born to this world              Federico Schwindt
the stars shone in the heavens.                     fgschwindt@qnx.com
Long after humanity is gone
the stars will continue to shine.

pgsql-hackers by date:

Previous
From: Brett McCormick
Date:
Subject: Re: [HACKERS] Re: your mail
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Backend crashes on select ... union