Re: [PERFORM] Why those queries do not utilize indexes?

2004-08-27 Thread Artimenko Igor
a set then sequential scan. Igor Artimenko --- Dennis Bjorklund <[EMAIL PROTECTED]> wrote: > On Fri, 27 Aug 2004, Artimenko Igor wrote: > > > 1. Sequential search and very high cost if set enable_seqscan to on; > > Seq scan on messageinfo ( cost=0.00..24371.30, rows =

[PERFORM] Why those queries do not utilize indexes?

2004-08-27 Thread Artimenko Igor
Hi everybody! Here is my queries: 1. explain SELECT * FROM messageinfo WHERE user_id = CAST( 2 AS BIGINT ) and msgstatus = CAST( 0 AS smallint ); 2. explain SELECT * FROM messageinfo WHERE messageinfo.user_id = 2::int8 and msgstatus = 0::smallint; In both cases Explain command shows:

Re: [PERFORM] Postgres does not utilyze indexes

2004-08-18 Thread Artimenko Igor
Thanks a lot. This issue has been resolved by casting to int8. I thought Postgres does those casts up by himself implicitelly. = Thanks a lot Igor Artimenko I specialize in Java, J2EE, Unix, Linux, HP, AIX, Solaris, Progress, Oracle, DB2, Postgres, Data Modeling _

[PERFORM] Postgres does not utilize indexes. Why?

2004-08-17 Thread Artimenko Igor
Hi everybody! I can’t make use of indexes even I tried the same test by changing different settings in postgres.conf like geqo to off/on & geqo related parameters, enable_seqscan off/on & so on. Result is the same. Here is test itself: I’ve created simplest table test and executed the same st