From: Andrus <eetasoft@online.ee>
To: pgsql-performance@postgresql.org
Subject: Re: Why date index is not used
Date: Fri, 9 Jun 2006 12:06:47 +0300
Message-ID: <e6bgd3$1vgk$1@news.hub.org> (raw)
References: <e69rq9$2a1b$1@news.hub.org>
<44887875.8000502@fuzzy.cz>
> Btw. have you run ANALYZE on the table recently?
I have autovacuum with default statitics settings running so I expect that
it is analyzed.
> What is the number
> of distinct values in the 'kuupaev' column?
select count(distinct kuupaev) from makse
returns 61
kuupaev is sales date.
So this can contain 365 distinct values per year and max 10 year database,
total can be 3650 distinct values after 10 years.
Andrus
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-performance@postgresql.org
Cc: eetasoft@online.ee
Subject: Re: Why date index is not used
In-Reply-To: <e6bgd3$1vgk$1@news.hub.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