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

Proposal: wildcards in pg_service.conf

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Proposal: wildcards in pg_service.conf
Date: 2008-02-27 12:41:18
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
I'd like to extend the libpq service file by allowing
wildcards, e.g. like this:


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

That implies that a [%] entry is only useful as last entry
in pg_service.conf.

I'd like to keep it simple and only accept standalone
wildcards (not things like 'prefix%suffix'), but that's
debatable (at the cost of more work).

As a special case, I would want to allow wildcards in LDAP URLs
like this:


This also explains my preference of '%' over '*' as a
wildcard to avoid problems with * in LDAP filter expressions.

The added value is that you don't need one line per database
in the configuration file.

The two examples above illustrate two cases where I think that
such a setup could be useful:
a) You have "most of" your databases in one cluster.
b) You use LDAP to store your connection parameters centrally.

What do you think?

Laurenz Albe


pgsql-hackers by date

Next:From: Hiroshi SaitoDate: 2008-02-27 12:46:14
Subject: Re: OSSP can be used in the windows environment now!
Previous:From: Magnus HaganderDate: 2008-02-27 11:47:15
Subject: Re: OSSP can be used in the windows environment now!

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