[PATCH] Find additional connection service files in pg_service.conf.d directory - Mailing list pgsql-hackers

From Curt Tilmes
Subject [PATCH] Find additional connection service files in pg_service.conf.d directory
Date
Msg-id CAMv20O9ZMcF7nZu-ZWhWDt5kOFTyWH0H6tGfyV=YLa1D4zqcag@mail.gmail.com
Whole thread Raw
Responses Re: [PATCH] Find additional connection service files inpg_service.conf.d directory
Re: [PATCH] Find additional connection service files inpg_service.conf.d directory
List 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

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: WIP: a way forward on bootstrap data
Next
From: Robert Haas
Date:
Subject: Re: [HACKERS] UPDATE of partition key