Skip site navigation (1) Skip section navigation (2)

Re: Proposal: wildcards in pg_service.conf

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Proposal: wildcards in pg_service.conf
Date: 2008-02-27 15:37:11
Message-ID: 28594.1204126631@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
"Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)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

In response to

Responses

pgsql-hackers by date

Next:From: Heikki LinnakangasDate: 2008-02-27 15:52:47
Subject: Re: An idea for parallelizing COPY within one backend
Previous:From: Alvaro HerreraDate: 2008-02-27 15:10:02
Subject: Re: An idea for parallelizing COPY within one backend

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group