From: mlw <markw@mohawksoft.com>
To: Doug McNaught <doug@wireboard.com>
Cc: Reiner Dassing <dassing@wettzell.ifag.de>
Cc: pgsql-sql@postgresql.org
Cc: pgsql-hackers@postgresql.org
Subject: Re: Index of a table is not used (in any case)
Date: Tue, 23 Oct 2001 10:40:00 -0400
Message-ID: <3BD58140.F7DF625C@mohawksoft.com> (raw)
References: <3BD3BFE0.55FC3EC0@wettzell.ifag.de>
<m3d73fhup3.fsf@belphigor.mcnaught.org>
Doug McNaught wrote:
> Reiner Dassing <dassing@wettzell.ifag.de> writes:
>
> > Hello PostgreSQl Users!
> >
> > PostSQL V 7.1.1:
> >
> > I have defined a table and the necessary indices.
> > But the index is not used in every SELECT. (Therefore, the selects are
> > *very* slow, due to seq scan on
> > 20 million entries, which is a test setup up to now)
>
> Perennial first question: did you VACUUM ANALYZE?
Can there, or could there, be a notion of "rule based" optimization of
queries in PostgreSQL? The "not using index" problem is probably the most
common and most misunderstood problem.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: markw@mohawksoft.com, doug@wireboard.com, dassing@wettzell.ifag.de, pgsql-hackers@postgresql.org
Subject: Re: Index of a table is not used (in any case)
In-Reply-To: <3BD58140.F7DF625C@mohawksoft.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox