pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruno Wolff III <bruno@wolff.to>
Cc: pgsql-performance@postgresql.org
Subject: Re: Recent 7.4 change slowed down a query by a factor of 3
Date: Wed, 18 Jun 2003 12:21:07 -0400
Message-ID: <22166.1055953267@sss.pgh.pa.us> (raw)
In-Reply-To: <20030618155340.GA21222@wolff.to>
References: <20030618150210.GA20603@wolff.to>
	<21750.1055949519@sss.pgh.pa.us>
	<20030618155340.GA21222@wolff.to>

Bruno Wolff III <bruno@wolff.to> writes:
> After doing an initdb I got the expected plan.

Hm.  I'm not sure what happened there --- I don't recall that we made
any initdb-needing changes in the past week or so.  (If we did, we
should have forced initdb by incrementing catversion, but sometimes
people forget to do that.)  The only change I can think of that's
related at all is that the outer query's "group by foo order by foo desc"
should now only require one sort step not two (which is probably why
my test went for the Sort/GroupAggregate plan not the HashAgg/Sort
plan you showed).  But that shouldn't have affected the plan for the
inner SELECT DISTINCT query, AFAICS.  Odd.

Probably not worth spending time on though.

			regards, tom lane



view thread (6+ messages)

Message-ID: <22166.1055953267@sss.pgh.pa.us>
Permalink:  ../22166.1055953267@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22166.1055953267@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, bruno@wolff.to
  Subject: Re: Recent 7.4 change slowed down a query by a factor of 3
  In-Reply-To: <22166.1055953267@sss.pgh.pa.us>
  References: <20030618150210.GA20603@wolff.to> <21750.1055949519@sss.pgh.pa.us> <20030618155340.GA21222@wolff.to> <22166.1055953267@sss.pgh.pa.us>

* 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