Re: [BUGS] pg_service.conf ignores dbname parameter - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [BUGS] pg_service.conf ignores dbname parameter
Date
Msg-id 200312181832.25898.peter_e@gmx.net
Whole thread Raw
In response to Re: [BUGS] pg_service.conf ignores dbname parameter  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [BUGS] pg_service.conf ignores dbname parameter
List 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.



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: replace all with * in pg_hba.conf
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] pg_service.conf ignores dbname parameter