Re: help understanding analyze - Mailing list pgsql-general

From Luca Ferrari
Subject Re: help understanding analyze
Date
Msg-id 200612102112.24964.fluca1978@infinito.it
Whole thread Raw
In response to Re: help understanding analyze  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
On Saturday 09 December 2006 11:46 Martijn van Oosterhout's cat, walking on
the keyboard, wrote:
> If it doesn't say "Index Scan" it's not using the index.
>
> At a guess your table is not big enough to make an index worthwhile. If
> your table is only a few pages long, it's just not efficient to lookup
> an index first.

Dear Martijn,
thanks for your explainations! I have checked the siz eof my table and,
despite the number of rows, it has less pages then the index, thus the seq.
scan is of course the faster one!
Now I begin to understand a little better how the optimizer works.

Thanks everyone,
Luca

pgsql-general by date:

Previous
From: "Jamie Lawrence Jenner"
Date:
Subject: db andtable schemas
Next
From: Al_Dev
Date:
Subject: World Wide International Law: Linux is compulsory (mandotary) in all schools/universities world-wide