strange update problem with 7.2.1 - Mailing list pgsql-hackers

From Oleg Bartunov
Subject strange update problem with 7.2.1
Date
Msg-id Pine.GSO.4.44.0205251226550.29788-100000@ra.sai.msu.su
Whole thread Raw
Responses Re: strange update problem with 7.2.1  (Oleg Bartunov <oleg@sai.msu.su>)
Re: strange update problem with 7.2.1  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

we've got rather strange problem with updating and GiST indices.
Below is a test run:

drop table tst;
create table tst ( a int[], i int );
copy tst from stdin;
........
\.
create index tsti on tst using gist (a);
vacuum full analyze;


test=# update tst set i = i+10   where a && '{3,4}';
UPDATE 3267
test=# set enable_indexscan=off;
SET VARIABLE
test=# update tst set i = i+10   where a && '{3,4}';
UPDATE 4060
test=# select count(*) from tst   where a && '{3,4}';count
------- 4060
(1 row)

test=# select version();                           version
---------------------------------------------------------------PostgreSQL 7.2.1 on i686-pc-linux-gnu, compiled by GCC
2.95.3
(1 row)

enabling gist indices cause some rows doesn't updating !
Please find attached test sql script (need to install contrib/intarray module)
Regards,    Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83



pgsql-hackers by date:

Previous
From: Philip Warner
Date:
Subject: Re: Edge case problem with pg_dump
Next
From: Oleg Bartunov
Date:
Subject: Re: strange update problem with 7.2.1