Re: psql commandline conninfo

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql commandline conninfo
Date: 2006-12-12 22:52:29
Message-ID: 20061212225229.GD10037@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

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(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-12-12 22:56:36 Better management of mergejoinable operators
Previous Message Andrew Dunstan 2006-12-12 22:44:07 Re: psql commandline conninfo

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2006-12-12 23:02:12 Re: psql commandline conninfo
Previous Message Andrew Dunstan 2006-12-12 22:44:07 Re: psql commandline conninfo