Bug with indexing int4?

From: Yury Don <yura(at)vpcit(dot)ru>
To: pgsql-general <pgsql-general(at)postgreSQL(dot)org>
Subject: Bug with indexing int4?
Date: 2000-01-20 09:39:59
Message-ID: 18611.000120@vpcit.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello All,

I ma sorry, I have sent previous uncomplited e-mail accidentally.
I have created the table

CREATE TABLE "tt" (
"cc" int4);
COPY "tt" FROM stdin;
-2112563299
-2111287024
-2110307960
.....

2146589610
2146589611
2146589612
\.

About 30 000 records totally

Then I am doing the following:

mdb=> select cc from tt where cc = -2112563299;
cc
-----------
-2112563299
(1 row)

mdb=> create index i_tt_cc on tt (cc);
CREATE
mdb=> select cc from tt where cc = -2112563299;
cc
(0 rows)

mdb=> drop index i_tt_cc;
DROP
mdb=> select cc from tt where cc = -2112563299;
cc
-----------
-2112563299
(1 row)

So, whith index postgresql works incorectly in this situation.
But when there are less records in the table (about 12 000),
everything works well.
I tested this on 3 different computers on Debian Linux 2.1 with
postgresql 6.5.2 and 6.5.3.

Best regards,
Yury ICQ 11831432
mailto:yura(at)vpcit(dot)ru

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2000-01-20 10:04:43 Re[2]: [GENERAL] Bug or my crooked hands?
Previous Message Yury Don 2000-01-20 09:33:23 Bug with indexing int4?