Re: rmgr hooks and contrib/rmgr_hook

Поиск
Список
Период
Сортировка
От ITAGAKI Takahiro
Тема Re: rmgr hooks and contrib/rmgr_hook
Дата
Msg-id 20080901121833.4A18.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Ответ на rmgr hooks and contrib/rmgr_hook  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: rmgr hooks and contrib/rmgr_hook  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-patches
Simon Riggs <simon@2ndQuadrant.com> wrote:

> 1) A refactoring of calls to Rmgr code from xlog.c, and having isolated
> the code for rmgrs then to allow rmgr plugins to modify and/or add rmgrs
> to Postgres. Includes additional code to generate log messages so we can
> see what is happening after plugin has executed.

Why do we need to set rmgr_hook in _PG_init(), and add or mofify rmgrs
in our hook functions? I think it is possible to modify RmgrTable
directly in _PG_init() instead of to have rmgr_hook. If we can do so,
the patch would be more simple, no? Am I missing something?


Index: src/backend/access/transam/rmgr.c
===================================================================
--- src/backend/access/transam/rmgr.c    (head)
+++ src/backend/access/transam/rmgr.c    (new)
@@ -25,1 +25,1 @@
-const RmgrData RmgrTable[RM_MAX_ID + 1] = {
+RmgrData RmgrTable[MAX_NUM_RMGRS + 1] = {

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center



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

Предыдущее
От: "Ryan Bradetich"
Дата:
Сообщение: [PgFoundry] Unsigned Data Types [2 of 2]
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: fixing bug in combocid.c