Re: [HACKERS] Re: your mail - Mailing list pgsql-hackers

From Andrew Martin
Subject Re: [HACKERS] Re: your mail
Date
Msg-id 199803091057.KAA21676@bsmir06.biochem.ucl.ac.uk
Whole thread Raw
List pgsql-hackers
> >   By the way, I have a sugestion I'd like to do about psql:
> >
> >   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?
>
What about having an environment variable to check and if this isn't set either,
start without connecting.

i.e. Priority 1 is the command line
     Priority 2 the envvar
     Default, start without connection


Andrew

----------------------------------------------------------------------------
Dr. Andrew C.R. Martin                             University College London
EMAIL: (Work) martin@biochem.ucl.ac.uk    (Home) andrew@stagleys.demon.co.uk
URL:   http://www.biochem.ucl.ac.uk/~martin
Tel:   (Work) +44(0)171 419 3890                    (Home) +44(0)1372 275775

pgsql-hackers by date:

Previous
From: Andrew Martin
Date:
Subject: Re: [HACKERS] pg_dumpall
Next
From: Andrew Martin
Date:
Subject: Re: [HACKERS] How to...?