psql commandline conninfo - Mailing list pgsql-hackers

From Andrew Dunstan
Subject psql commandline conninfo
Date
Msg-id 457F1DFC.1030609@dunslane.net
Whole thread Raw
Responses Re: psql commandline conninfo
List pgsql-hackers

I have been working on providing psql with the ability to accept a libpq 
conninfo string, so that the following now works for me:
 psql "conn:service=sname user=uname"

Instead of providing yet another switch, I overloaded the dbname 
parameter so that if it has the recognised prefix the remainder is 
treated as a conninfo string. I have 3 questions:

1. Is this a good way to go, or should we just provide yet another switch?
2. If this is ok, what should the prefix be? is "conn:" ok?
3. Should we append settings from other switches to the conninfo (e.g. 
-U or -h), or should we just ignore them? If we ignore them should we 
warn about that if they are present?

cheers

andrew


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Grouped Index Tuples
Next
From: Tom Lane
Date:
Subject: Re: psql commandline conninfo