Cache invalidation bug in RelationGetIndexAttrBitmap() - Mailing list pgsql-hackers

From Andres Freund
Subject Cache invalidation bug in RelationGetIndexAttrBitmap()
Date
Msg-id 20140514155204.GE23943@awork2.anarazel.de
Whole thread Raw
Responses Re: Cache invalidation bug in RelationGetIndexAttrBitmap()
Re: Cache invalidation bug in RelationGetIndexAttrBitmap()
List pgsql-hackers
On 2014-05-14 15:17:39 +0200, Andres Freund wrote:
> On 2014-05-14 15:08:08 +0200, Tomas Vondra wrote:
> > Apparently there's something wrong with 'test-decoding-check':
>
> Man. I shouldn't have asked... My code. There's some output in there
> that's probably triggered by the extraordinarily long runtimes, but
> there's definitely something else wrong.
> My gut feeling says it's in RelationGetIndexList().

Nearly right. It's in RelationGetIndexAttrBitmap(). Fix attached.

Tomas, thanks for that. I've never (and probably will never) run
CLOBBER_CACHE_RECURSIVELY during development. Having a machine do that
regularly is really helpful. How long does a single testrun take? It
takes hundreds of seconds here to do a single UPDATE?

There were some more differences but those are all harmless and caused
by the extraordinarily long runtime (autovacuums). I think we need to
add a feature to test_decoding to suppress displaying transactions
without changes. Ick.

Greetings,

Andres Freund

--
 Andres Freund                       http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

Attachment

pgsql-hackers by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Wanna help PostgreSQL
Next
From: Andres Freund
Date:
Subject: Re: Wanna help PostgreSQL