pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dror Matalon <dror@zapatec.com>
To: Postgresql Performance <pgsql-performance@postgresql.org>
Subject: Re: Speeding up Aggregates
Date: Fri, 10 Oct 2003 11:23:48 -0700
Message-ID: <20031010182348.GD2979@rlx11.zapatec.com> (raw)
In-Reply-To: <200310101032.32271.josh@agliodbs.com>
References: <20031003202120.GO87525@rlx11.zapatec.com>
	<20031010013522.GB18596@wolff.to>
	<20031010035526.GT2979@rlx11.zapatec.com>
	<200310101032.32271.josh@agliodbs.com>

On Fri, Oct 10, 2003 at 10:32:32AM -0700, Josh Berkus wrote:
> Dror,
> 
> > Ouch. I just double checked and you're right. Is this considered a bug,
> > or just an implementation issue?
> 
> It's an implementation issue, which may be fixed by 7.5 but not sooner.  
> Basically, the free ability of PostgreSQL users to define their own 
> aggregates limits our ability to define query planner optimization for 
> aggregates.   Only recently has anyone suggested a feasable way around this.
> 
> > While I've seen this hint a few times in the lists, it seems like it's
> > one of those magic incantations that those in the know, know about, and
> > that people new to postgres are going to be surprised by the need to use
> > this idiom.
> 
> It IS in the FAQ.

Might be a good idea to put it in its own section rather than under "My
queries are slow or don't make use of the indexes. Why?"

Also, you might want to take out for 7.4

4.22) Why are my subqueries using IN so slow?


> 
> -- 
> Josh Berkus
> Aglio Database Solutions
> San Francisco

-- 
Dror Matalon
Zapatec Inc 
1700 MLK Way
Berkeley, CA 94709
http://www.zapatec.com



view thread (22+ messages)

Message-ID: <20031010182348.GD2979@rlx11.zapatec.com>
Permalink:  ../20031010182348.GD2979@rlx11.zapatec.com/
Also on:    postgresql.org/message-id/20031010182348.GD2979@rlx11.zapatec.com

 · 

reply

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: dror@zapatec.com
  Subject: Re: Speeding up Aggregates
  In-Reply-To: <20031010182348.GD2979@rlx11.zapatec.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