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

Поиск
Список
Период
Сортировка
От Curt Tilmes
Тема [PATCH] Find additional connection service files in pg_service.conf.d directory
Дата
Msg-id CAMv20O9ZMcF7nZu-ZWhWDt5kOFTyWH0H6tGfyV=YLa1D4zqcag@mail.gmail.com
обсуждение исходный текст
Ответы Re: [PATCH] Find additional connection service files inpg_service.conf.d directory
Re: [PATCH] Find additional connection service files inpg_service.conf.d directory
Список 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

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: WIP: a way forward on bootstrap data
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] UPDATE of partition key