Usage of ProcessConfigfile in SIGHUP_Handler

Поиск
Список
Период
Сортировка
От Lakshmi Narayana Velayudam
Тема Usage of ProcessConfigfile in SIGHUP_Handler
Дата
Msg-id CAA4pTn+2pUEJ_WVF493uBqdmqUQrdSpHJm41advrTnpbtDaN7A@mail.gmail.com
обсуждение исходный текст
Ответы Re: Usage of ProcessConfigfile in SIGHUP_Handler
Список pgsql-hackers
Hi pgsql hacker, 

Recently I have been trying to understand why GUC changes will be visible even though they are done in the signal handler as part of ProcessConfigfile (done in some extension code). Later I have seen almost all postgresql processes/bgworkers use signal handler to set a variable ConfigReloadPending which will later be read in main code to process guc changes but for postmaster ProcessConfigfile is being called from signal handler itself which intern has memory allocation related code (non-async safe code). Is it safe to do this?

Regards,
Narayana

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