Re: rmgr hooks and contrib/rmgr_hook - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: rmgr hooks and contrib/rmgr_hook
Date
Msg-id 1220372673.4371.465.camel@ebony.2ndQuadrant
Whole thread Raw
In response to Re: rmgr hooks and contrib/rmgr_hook  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: rmgr hooks and contrib/rmgr_hook
List 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 by date:

Previous
From: Devrim GÜNDÜZ
Date:
Subject: Re: What is d2mdir?
Next
From: "Ryan Bradetich"
Date:
Subject: Re: Question regarding the database page layout.