Re: Dynamic configuration via LDAP in postmaster

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Dynamic configuration via LDAP in postmaster
Дата
Msg-id 529E0CAE.3050402@vmware.com
обсуждение исходный текст
Ответ на Dynamic configuration via LDAP in postmaster  (Vasily Soshnikov <dedok.mad@gmail.com>)
Ответы Re: Dynamic configuration via LDAP in postmaster  (Vasily Soshnikov <dedok.mad@gmail.com>)
Список pgsql-hackers
On 12/03/2013 05:44 PM, Vasily Soshnikov wrote:
> I need advise about where is best place for adding such features.
>
> Currently I found that 'postmaster' have event loop(including handling
> SIGHUP) inside PostgressMain(postgress.c)  for realoding configuration
> file, based on my investigation my plan is handling ldap events just before
> SIGHUP.
>
> PS I guess tomorrow I will start implement this feature inside
> 'postmaster', but before I start I wish to know expert opinion about where
> are most good place for dispatching of incomming messages(about
> configuration has changed etc) from the ldap.

postmaster is kept very small on purpose, because if that process dies, 
it will take the whole server down with it. I'd suggest writing a custom 
background worker that talks with the ldap server. It can then write the 
changes to the configuration files, and send SIGHUP to reload.

- Heikki



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

Предыдущее
От: Boszormenyi Zoltan
Дата:
Сообщение: Re: Review: ECPG infrastructure changes part 1, was: Re: ECPG fixes
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: Fix a couple of bugs in MultiXactId freezing