Re: unknown libpq service entries ignored

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Peter Eisentraut *EXTERN*" <peter_e(at)gmx(dot)net>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: unknown libpq service entries ignored
Date: 2009-11-27 07:05:04
Message-ID: D960CB61B694CF459DCFB4B0128514C203938076@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut wrote:
> When using the "service" parameter in a libpq connection (e.g., psql
> service=foo), and the service name is not defined in pg_service.conf,
> then the setting is silently ignored and the connection proceeds with
> whatever other settings and defaults apply. That does not look very
> robust. Shouldn't there be an error when a specified service name does
> not exist?

I agree. It leads to strange error messages at least (I didn't want
to connect to port 5432 on localhost?!?), and you could end up
connecting to a different database than you wanted without
noticing it.

Yours,
Laurenz Albe

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2009-11-27 07:22:28 Re: unknown libpq service entries ignored
Previous Message Robert Haas 2009-11-27 04:16:52 Re: patch - per-tablespace random_page_cost/seq_page_cost