[PATCH] Find additional connection service files in pg_service.conf.d directory

From: Curt Tilmes <curt(at)tilmes(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: [PATCH] Find additional connection service files in pg_service.conf.d directory
Date: 2018-01-12 14:53:51
Message-ID: CAMv20O9ZMcF7nZu-ZWhWDt5kOFTyWH0H6tGfyV=YLa1D4zqcag@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I love centralizing connection service definitions in
<sysconfdir>/pg_service.conf, but for a
large enterprise, sometimes we have multiple sets of connection
service definitions
independently managed.

The convention widely adopted for this type of thing is to allow
multiple config files to be in
a directory, usually the '.d' version of the config filename. See, for example:

http://blog.siphos.be/2013/05/the-linux-d-approach/
https://lists.debian.org/debian-devel/2010/04/msg00352.html

This patch adds an extra search for service connection definitions if
the current places fail
to find the service (~/.pg_service.conf <sysconfdir>/pg_service.conf).
It will then search
every readable file in the directory <sysconfdir>/pg_service.conf.d.

What do you think?

Curt

Attachment Content-Type Size
pg_service.conf.d.patch text/x-patch 3.6 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2018-01-12 14:54:44 Re: [HACKERS] UPDATE of partition key
Previous Message Alvaro Herrera 2018-01-12 14:25:28 Re: WIP: a way forward on bootstrap data