Re: index scan leads to result that is different from sec scan after upgrading to 8.3.4

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Sergey Konoplev" <gray(dot)ru(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org>, Teodor Sigaev <teodor(at)sigaev(dot)ru>
Subject: Re: index scan leads to result that is different from sec scan after upgrading to 8.3.4
Date: 2008-10-20 13:32:26
Message-ID: 28396.1224509546@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Sergey Konoplev" <gray(dot)ru(at)gmail(dot)com> writes:
> db_online=> select obj_status_did, count(1) from person_online
> where obj_status_did = 1 group by obj_status_did;
> QUERY PLAN
> -------------------------------------------------------------------------------------------------------------------------
> GroupAggregate (cost=0.00..36.37 rows=1 width=2) (actual
> time=1.169..1.170 rows=1 loops=1)
> -> Index Scan using i_person_online_test__geo_point on
> person_online_test (cost=0.00..30.07 rows=1258 width=2) (actual
> time=0.016..0.928 rows=258 loops=1)
> Total runtime: 1.268 ms
> (3 rows)

Hmm. So the problem seems to be statable as "a full-index scan on a
GIST index might fail to return all the rows, if the index has been
modified since creation". Teodor, can you think of anything you
changed recently in that area?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sergey Konoplev 2008-10-20 14:07:00 Re: index scan leads to result that is different from sec scan after upgrading to 8.3.4
Previous Message Sergey Konoplev 2008-10-20 13:17:21 Re: index scan leads to result that is different from sec scan after upgrading to 8.3.4