Re: rmgr hooks and contrib/rmgr_hook

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: rmgr hooks and contrib/rmgr_hook
Дата
Msg-id 1220372673.4371.465.camel@ebony.2ndQuadrant
обсуждение исходный текст
Ответ на Re: rmgr hooks and contrib/rmgr_hook  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: rmgr hooks and contrib/rmgr_hook
Список pgsql-hackers
On Tue, 2008-09-02 at 11:39 -0400, Tom Lane wrote:
> Simon Riggs <simon@2ndQuadrant.com> writes:
> > On Tue, 2008-09-02 at 18:30 +0900, ITAGAKI Takahiro wrote:
> >> How about adding a new variable "recovery_preload_libaries" like as
> >> shared_preload_libraries? Rmgr libs in it are loaded only in startup
> >> process and only if recovery is needed.
> 
> > Good point. If others agree, I will re-implement this way.
> 
> Aside from the objections raised by Heikki

Heikki hasn't raised any. He was objecting to an additional thought from
Itagaki. There haven't been any other objections to this concept.

> , I'm not seeing the use-case
> for an rmgr that only executes during recovery; in fact I'm not entirely
> sure that I see a use-case for this entire patch.  Where are the WAL
> records that the "loadable rmgr" processes going to come from?

There is ample reason to do this. I covered this in my first post,
please re-read up thread. You have commented on this post already, so
I'm suprised by your comments.

Rmgr functions only execute during recovery, that is their role in life.
Except when we have WAL_DEBUG enabled they are never called elsewhere.

-- Simon Riggs           www.2ndQuadrant.comPostgreSQL Training, Services and Support



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

Предыдущее
От: Devrim GÜNDÜZ
Дата:
Сообщение: Re: What is d2mdir?
Следующее
От: "Ryan Bradetich"
Дата:
Сообщение: Re: Question regarding the database page layout.