Re: Proposal: wildcards in pg_service.conf - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Proposal: wildcards in pg_service.conf
Date
Msg-id 28594.1204126631@sss.pgh.pa.us
Whole thread Raw
In response to Proposal: wildcards in pg_service.conf  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
Responses Re: Proposal: wildcards in pg_service.conf  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
List pgsql-hackers
"Albe Laurenz" <laurenz.albe@wien.gv.at> writes:
> I'd like to extend the libpq service file by allowing
> wildcards, e.g. like this:

> [%]
> host=dbhost.mycompany.com
> dbname=%

> Such an entry would match all service parameters,
> and all ocurrences of the wildcard right of a = would
> be replaced with the service parameter.

This seems poorly thought out.  How could you have any other service
entries besides this one?  What is the point of doing it like this
and not simply overriding the service's database selection?

The special case for LDAP makes it even more obvious that this is
a kluge.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: An idea for parallelizing COPY within one backend
Next
From: "Heikki Linnakangas"
Date:
Subject: Re: An idea for parallelizing COPY within one backend