From: Doug McNaught <doug@wireboard.com>
To: Reiner Dassing <dassing@wettzell.ifag.de>
Cc: pgsql-sql@postgresql.org
Cc: Josh@agliodbs.com
Cc: sszabo@megazone23.bigpanda.com
Cc: chriskl@familyhealth.com.au
Subject: Re: Index of a table is not used (in any case)
Date: 23 Oct 2001 09:01:59 -0400
Message-ID: <m3y9m2h5mg.fsf@belphigor.mcnaught.org> (raw)
References: <3BD3BFE0.55FC3EC0@wettzell.ifag.de>
<3BD515B0.C14FE0FB@wettzell.ifag.de>
Reiner Dassing <dassing@wettzell.ifag.de> writes:
> I would like to mention first, that I will use the [SQL] list for my
> answers,
> regarding the notice of Josh Berkus.
>
> Q: "did you use VACUUM ANALYZE"?
> A: This table was a test bed, just using INSERTS without ANY deletes or
> updates
You still need to run VACUUM ANALYZE. The ANALYZE part measures the
statistics of your data, which the planner needs in order to make
decision.
> Am afraid, that the real answer is not mentioned:
> Why is the index used in the SELECT:
> select * from wetter order by epoche desc;
>
>
> select * from wetter where epoche between '1970-01-01' and '1980-01-01'
> order by epoche asc;
If you EXPLAIN output for these queries, someone can probably help
you.
-Doug
--
Let us cross over the river, and rest under the shade of the trees.
--T. J. Jackson, 1863
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: doug@wireboard.com, dassing@wettzell.ifag.de, Josh@agliodbs.com, sszabo@megazone23.bigpanda.com, chriskl@familyhealth.com.au
Subject: Re: Index of a table is not used (in any case)
In-Reply-To: <m3y9m2h5mg.fsf@belphigor.mcnaught.org>
* 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