From: Marc G. Fournier <scrappy@postgresql.org>
To: Greg Stark <gsstark@mit.edu>
Cc: Dennis Bjorklund <db@zigo.dhs.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: *very* slow query to summarize data for a month ...
Date: Tue, 11 Nov 2003 14:14:01 -0400 (AST)
Message-ID: <20031111141328.X56037@ganymede.hub.org> (raw)
In-Reply-To: <878ymmkdb9.fsf@stark.dyndns.tv>
References: <Pine.LNX.4.44.0311110747090.26313-100000@zigo.dhs.org>
<878ymmkdb9.fsf@stark.dyndns.tv>
On Tue, 11 Nov 2003, Greg Stark wrote:
> Actually you might be able to get the same effect using function indexes
> like:
>
> create index i on traffic_log (month_trunc(runtime), company_id)
had actually thought of that one ... is it something that is only
available in v7.4?
ams=# create index i on traffic_logs ( month_trunc(runtime), company_id );
ERROR: parser: parse error at or near "," at character 54
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: scrappy@postgresql.org, gsstark@mit.edu, db@zigo.dhs.org
Subject: Re: *very* slow query to summarize data for a month ...
In-Reply-To: <20031111141328.X56037@ganymede.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