On Fri, Jun 26, 2015 at 11:35 AM, Alvaro Herrera <alvhe...@2ndquadrant.com>
wrote:

> Jeff Janes wrote:
>
> > On replica:
> >
> > set enable_seqscan TO off;
> > explain (analyze) select count(*) from foobar ;
> > ERROR:  corrupted BRIN index: inconsistent range map
>
> Nice.  As I understand it, the problem is that the replay is using the
> block number of the revmap page as target blkno of the revmap entry,
> when it should be using the block number of the data page.  This should
> fix it.
>


Thanks, that worked.

The way the blkno and buffer refer to different block/buffers is pretty
confusing.  Could we rename a variable to make it clearer which buffer's
number is contained in blkno?

Thanks,

Jeff

Reply via email to