Re: Semantics of pg_file_settings view

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Semantics of pg_file_settings view
Дата
Msg-id CA+TgmobZpov+GWSzi5CNKgg34VK-pCJOwMXoPhP4Zp4h5tHhSA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Semantics of pg_file_settings view  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Semantics of pg_file_settings view
Список pgsql-hackers
On Fri, Jun 26, 2015 at 4:02 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Combining this with my idea about preserving the ConfigVariable list,
> I'm thinking that it would be a good idea for ProcessConfigFile() to
> run in a context created for the purpose of processing the config files,
> rather than blindly using the caller's context, which is likely to be
> a process-lifespan context and thus not a good place to leak in.
> We could keep this context around until the next SIGHUP event, so that
> the ConfigVariable list remains available, and then destroy it and
> replace it with the next ProcessConfigFile's instance of the context.
> In this way, any leakage in the processing code could not accumulate
> over multiple SIGHUPs, and so it would be certain to remain fairly
> negligible.

That seems like a nice idea.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Semantics of pg_file_settings view
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: git push hook to check for outdated timestamps