Re: B-tree "finish incomplete split" bug - Mailing list pgsql-hackers

From Tom Lane
Subject Re: B-tree "finish incomplete split" bug
Date
Msg-id 6611.1213193741@sss.pgh.pa.us
Whole thread Raw
In response to B-tree "finish incomplete split" bug  ("Heikki Linnakangas" <heikki@enterprisedb.com>)
Responses Re: B-tree "finish incomplete split" bug  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
"Heikki Linnakangas" <heikki@enterprisedb.com> writes:
> The trivial fix is to not call CacheInvalidateRelcache() in recovery 
> (patch attached). Another option is to put the check into 
> CacheInvalidateRelcache() itself, but in the name of consistency we 
> should then put the same check into the other CacheInvalidate* variants 
> as well. As nbtinsert.c is the only place that calls 
> CacheInvalidateRelcache during WAL replay, I'm going to do the trivial fix.

This will need to be revisited if we ever hope to get read-only slaves
working.  But I agree with the trivial fix for now (especially in the
back branches).
        regards, tom lane


pgsql-hackers by date:

Previous
From: Zdenek Kotala
Date:
Subject: Proposal: Multiversion page api (inplace upgrade)
Next
From: Tom Lane
Date:
Subject: Re: Proposal: Multiversion page api (inplace upgrade)