Re: [BUGS] pg_service.conf ignores dbname parameter

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Michael Fuhr <mfuhr(at)fuhr(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [BUGS] pg_service.conf ignores dbname parameter
Date: 2003-12-18 17:32:25
Message-ID: 200312181832.25898.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Tom Lane wrote:
> Hm. I'm of the opinion that the real problem here is the code's
> assumption that it is reasonable to force dbname = servicename when
> the service file doesn't say any such thing. For all other
> parameters, omitting the parameter from pg_service.conf causes the
> standard default to be adopted. Why should dbname work differently?

Regardless of this particular issue, I think it would be useful if,
under some conditions to be identified, some service were taken as
default if nothing is specied in libpq. That would eliminate the need
to set environment variables, which is undesirable in many situations.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2003-12-18 17:44:17 Re: [BUGS] pg_service.conf ignores dbname parameter
Previous Message Tom Lane 2003-12-18 15:54:55 Re: plpgsql For SQLQuery Loop Flags Error

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-12-18 17:44:17 Re: [BUGS] pg_service.conf ignores dbname parameter
Previous Message Peter Eisentraut 2003-12-18 17:28:20 Re: replace all with * in pg_hba.conf