Re: [HACKERS] SP-GiST bug and fix

2013-11-02 Thread Tom Lane
Teodor Sigaev writes: > SP-GiST has a bug during creation: > % create table ranges as select int4range( (random()*5)::int, > (random()*5)::int+5) as range > from generate_series(1,100) x; > % create index ranges_range_spgist_idx on ranges using spgist(

[HACKERS] SP-GiST bug and fix

2013-10-31 Thread Teodor Sigaev
SP-GiST has a bug during creation: % create table ranges as select int4range( (random()*5)::int, (random()*5)::int+5) as range from generate_series(1,100) x; % create index ranges_range_spgist_idx on ranges using spgist(range); ERROR: unexpected spgdoin