Re: rmgr hooks (v2)
От | ITAGAKI Takahiro |
---|---|
Тема | Re: rmgr hooks (v2) |
Дата | |
Msg-id | 20081218142440.AB0D.52131E4D@oss.ntt.co.jp обсуждение исходный текст |
Ответ на | rmgr hooks (v2) (Simon Riggs <simon@2ndQuadrant.com>) |
Ответы |
Re: rmgr hooks (v2)
|
Список | pgsql-hackers |
Simon Riggs <simon@2ndQuadrant.com> wrote: > Latest version of rmgr hooks patch for later review in current > commitfest. > (Minor update to CVS HEAD). It doesn't work on Window (EXEC_BACKEND platform) because shared_preload_libraries are not loaded in startup process. So, there are no timing to initialize rmgr_hook. I have the same problem in contrib/pg_stat_statements. The both patches requires the following modifications. diff -cprN HEAD/src/backend/storage/lmgr/proc.c pg_stat_statements/src/backend/storage/lmgr/proc.c *** HEAD/src/backend/storage/lmgr/proc.c Mon Nov 3 06:24:52 2008 --- pg_stat_statements/src/backend/storage/lmgr/proc.c Tue Dec 2 16:57:33 2008 *************** InitAuxiliaryProcess(void) *** 381,386 **** --- 381,390 ---- if (MyProc != NULL) elog(ERROR, "you already exist"); + #ifdef EXEC_BACKEND + process_shared_preload_libraries(); + #endif + /* * We use the ProcStructLock to protect assignment and releasing of * AuxiliaryProcs entries. Regards, --- ITAGAKI Takahiro NTT Open Source Software Center
В списке pgsql-hackers по дате отправления: