Re: [BUGS] Patch to allow C extension modules to initialize/finish
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [BUGS] Patch to allow C extension modules to initialize/finish |
| Дата | |
| Msg-id | 24165.1154743552@sss.pgh.pa.us обсуждение |
| Ответ на | Re: [BUGS] Patch to allow C extension modules to initialize/finish (Greg Stark <gsstark@mit.edu>) |
| Список | pgsql-hackers |
Greg Stark <gsstark@mit.edu> writes:
> Tom Lane <tgl@sss.pgh.pa.us> writes:
>> In any case, the PG_init proposal neither adds nor takes away ability
>> to do stuff immediately post-fork, so I think that's an orthogonal
>> consideration.
> So is the only question whether there's a need to do stuff pre-fork?
That's not a question, that's a well-established fact --- pl/R certainly
needs it, and any other library that has expensive setup work that can
propagate through a fork does too.
I think adding a hook to allow a postmaster-preloaded library to execute
some work immediately post-fork is a separate consideration. Feel free
to propose it if you want, but I don't see what it's got to do with the
patch on the table.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера