Re: psql commandline conninfo - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: psql commandline conninfo
Date
Msg-id 20061212225229.GD10037@svana.org
Whole thread Raw
In response to Re: psql commandline conninfo  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: psql commandline conninfo  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Tue, Dec 12, 2006 at 05:44:07PM -0500, Andrew Dunstan wrote:
> Now I look at fe-connect.c more closely, I'm tempted just to try parsing
> the dbname param as a conninfo string, and if it doesn't work fall back
> on a plain dbname. I could greatly reduce the chance of following the
> failure path by just looking for an = but I think anything more is
> likely to be redundant.

Does that mean that:

psql -d "service=myservice"

should Just Work(tm)? That would be nice.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: psql commandline conninfo
Next
From: Tom Lane
Date:
Subject: Better management of mergejoinable operators