Re: Index Page Split logging - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: Index Page Split logging
Date
Msg-id 20080102100511.GB8566@svana.org
Whole thread Raw
In response to Re: Index Page Split logging  ("Gokulakannan Somasundaram" <gokul007@gmail.com>)
Responses Re: Index Page Split logging  ("Gokulakannan Somasundaram" <gokul007@gmail.com>)
List pgsql-hackers
On Wed, Jan 02, 2008 at 02:49:35PM +0530, Gokulakannan Somasundaram wrote:
> On Jan 2, 2008 2:25 AM, Simon Riggs <simon@2ndquadrant.com> wrote:
> > On Tue, 2008-01-01 at 14:02 -0500, Tom Lane wrote:
> > > How are you going to avoid the need to run user-defined functions
> > > (specifically, the btree comparison functions) during replay?
> >
> > Seems like a good objection. Just exercising my lateral thought muscles.
>
> Can this be explained in more detail???

If the goal is to only store the insert, then we need to determine
during recovery which page the record needs to be added to. To do this
you need to go through the index, which can only be done by calling
user-defined functions.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Those who make peaceful revolution impossible will make violent revolution inevitable.
>  -- John F Kennedy

pgsql-hackers by date:

Previous
From: "Gokulakannan Somasundaram"
Date:
Subject: Re: Index Page Split logging
Next
From: "Gokulakannan Somasundaram"
Date:
Subject: Re: Index Page Split logging