Unix Technical Forum

BUG #2341: Wrong results when using index

This is a discussion on BUG #2341: Wrong results when using index within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 2341 Logged by: Slavcho Ivanov Email address: slavcho@gmail.com PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 10:50 AM
Slavcho Ivanov
 
Posts: n/a
Default BUG #2341: Wrong results when using index


The following bug has been logged online:

Bug reference: 2341
Logged by: Slavcho Ivanov
Email address: slavcho@gmail.com
PostgreSQL version: 8.1.2
Operating system: slackware
Description: Wrong results when using index
Details:

It happend so that a query started returning wrong results.

The query was as simple as possible
"select * from data where "SensorID" = 18",
and the result had a couple of rows where SensorID was NOT 18, but 3.

There was a index at the table using only ("SensorID").

After we dropped the index. It was OK. The query started again to show good
results.

We created the index again. And still it was OK.

Unfortunatelly (for you, good for us), there are no more problems of that
kind.

There are about 85 000 rows in that table, and we don't use "delete" or
"update" there - only insert new rows. Hope it helps.

Sincerely:
Slavcho Ivanov

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 10:51 AM
Tom Lane
 
Posts: n/a
Default Re: BUG #2341: Wrong results when using index

"Slavcho Ivanov" <slavcho@gmail.com> writes:
> The query was as simple as possible
> "select * from data where "SensorID" = 18",
> and the result had a couple of rows where SensorID was NOT 18, but 3.


That's not too surprising if the index had gotten corrupted somehow,
but since you haven't provided any details that would let someone else
reproduce the problem, there's not much we can do with this report :-(

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:08 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com