Re: [HACKERS] Indexes bug

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Serj <fenix(at)am(dot)ring(dot)ru>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Indexes bug
Date: 1998-08-11 15:18:07
Message-ID: 27067.902848687@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Serj <fenix(at)am(dot)ring(dot)ru> writes:
> [ system not using an index when it should ]

Two questions:

1. Did you do a "vacuum analyze" after making the indexes?
Without that, the optimizer may be choosing a sequential scan
because it doesn't know how big the tables are.

2. What postgres version are you using?

There are some bugs in the current cvs sources that affect whether
indexes get used --- look at the ongoing threads in the hackers list.
Maybe you've found another manifestation of that problem. But if
you're using 6.3.2 then it's something different...

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 1998-08-11 15:23:19 Re: [HACKERS] Fix in oracle_compat.c
Previous Message Bruce Momjian 1998-08-11 15:13:25 Re: [HACKERS] Fix in oracle_compat.c