Re: Minmax indexes

From: "Erik Rijkers" <er(at)xs4all(dot)nl>
To: "Alvaro Herrera" <alvherre(at)2ndquadrant(dot)com>
Cc: "Jaime Casanova" <jaime(at)2ndquadrant(dot)com>, "Thom Brown" <thom(at)linux(dot)com>, "Pg Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Minmax indexes
Date: 2013-09-25 06:39:55
Message-ID: 864acb9dc0f4d5882a044a0072f664f5.squirrel@webmail.xs4all.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, September 25, 2013 00:14, Alvaro Herrera wrote:
> [minmax-4-incr.patch]

After a --data-checksums initdb (successful), the following error came up:

after the statement: create index t_minmax_idx on t using minmax (r);

WARNING: page verification failed, calculated checksum 25951 but expected 0
ERROR: invalid page in block 1 of relation base/21324/26267_vm

it happens reliably. every time I run the program.

Below is the whole program that I used.

Thanks,

Erik Rijkers

#!/bin/sh

t=t

if [[ 1 -eq 1 ]]; then

echo "
drop table if exists $t ;
create table $t
as
select i, cast( random() * 10^9 as integer ) as r
from generate_series(1, 1000000) as f(i) ;
analyze $t;
table $t limit 5;
select count(*) from $t;
explain analyze select min(r), max(r) from $t;
select min(r), max(r) from $t;

create index ${t}_minmax_idx on $t using minmax (r);
analyze $t;

explain analyze select min(r), max(r) from $t;
select min(r), max(r) from $t;

" | psql

fi

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Khandekar 2013-09-25 07:19:55 Re: pg_dump/restore encoding woes
Previous Message Amit Kapila 2013-09-25 03:18:23 Re: dynamic shared memory