Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
>> I have just noticed that there does not seem to be a psql
>> command line switch to specify a pg_service.conf name
>> to connect to. I know we can use a PGSERVICE environment
>> setting instead, but I think we should have
>> a command line switch too. Small 8.3 TODO item?
>
> More generally, it'd be nice to be able to specify a PQconnectdb
string,
> instead of having to invent a new psql switch for every keyword we
allow
> in those strings.
I think that both would be nice. Indeed, I wanted to suggest
a switch for PGSERVICE myself.
Ideas:
-n or --name for the service name
-C or --connect for the connect string
So, +1 on the original suggestion!
Yours,
Laurenz Albe