pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Neil Conway <neilc@samurai.com>
To: scott.marlowe <scott.marlowe@ihs.com>
Cc: Pailloncy Jean-Gérard <pailloncy@ifrance.com>
Cc: PostgreSQL Performance <pgsql-performance@postgresql.org>
Subject: Re: slow plan for min/max
Date: Mon, 08 Sep 2003 14:49:12 -0400
Message-ID: <1063046951.9051.68.camel@tokyo> (raw)
In-Reply-To: <Pine.LNX.4.33.0309080954020.11520-100000@css120.ihs.com>
References: <Pine.LNX.4.33.0309080954020.11520-100000@css120.ihs.com>

On Mon, 2003-09-08 at 11:56, scott.marlowe wrote:
> Basically, Postgresql uses an MVCC locking system that makes massively 
> parallel operation possible, but costs in certain areas, and one of those 
> areas is aggregate performance over large sets.  MVCC makes it very hard 
> to optimize all but the simplest of aggregates, and even those 
> optimzations which are possible would wind up being quite ugly at the 
> parser level.

As was pointed out in a thread a couple days ago, MIN/MAX() optimization
has absolutely nothing to do with MVCC. It does, however, make
optimizing COUNT() more difficult.

-Neil





view thread (20+ messages)  latest in thread

Message-ID: <1063046951.9051.68.camel@tokyo>
Permalink:  ../1063046951.9051.68.camel@tokyo/
Also on:    postgresql.org/message-id/1063046951.9051.68.camel@tokyo

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: neilc@samurai.com, scott.marlowe@ihs.com, pailloncy@ifrance.com
  Subject: Re: slow plan for min/max
  In-Reply-To: <1063046951.9051.68.camel@tokyo>
  References: <Pine.LNX.4.33.0309080954020.11520-100000@css120.ihs.com> <1063046951.9051.68.camel@tokyo>

* 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