Re: postgres 7.4 at 100% - Mailing list pgsql-performance

From Bruno Wolff III
Subject Re: postgres 7.4 at 100%
Date
Msg-id 20040629132813.GA28041@wolff.to
Whole thread Raw
In response to Re: postgres 7.4 at 100%  (Chris Cheston <ccheston@gmail.com>)
List pgsql-performance
On Tue, Jun 29, 2004 at 01:37:30 -0700,
  Chris Cheston <ccheston@gmail.com> wrote:
> ok i just vacuumed it and it's taking slightly longer now to execute
> (only about 8 ms longer, to around 701 ms).
>
> Not using indexes for calllogs(from)... should I?  The values for
> calllogs(from) are not unique (sorry if I'm misunderstanding your
> point).

If you are hoping for some other plan than a sequential scan through
all of the records you are going to need an index. You can have an
index on a column (or function) that isn't unique for all rows.

pgsql-performance by date:

Previous
From: Michal Táborský
Date:
Subject: Slow INSERT
Next
From: Bruno Wolff III
Date:
Subject: Re: no index-usage on aggregate-functions?