pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Dutcher <dave@tridecap.com>
To: 'Rolf Østvik (HA/EXA)' <rolf.ostvik@ericsson.com>
To: pgsql-performance@postgresql.org
Subject: Re: Problem with grouping, uses Sort and GroupAggregate, HashAggregate is better(?)
Date: Sun, 14 Jan 2007 10:12:18 -0600
Message-ID: <011e01c737f6$c449c580$8300a8c0@tridecap.com> (raw)
In-Reply-To: <D7E5DB1F5F917E45AA4DF9F9F1306BEE31E1D1@esealmw111>

> -----Original Message-----
> From: pgsql-performance-owner@postgresql.org 
> [mailto:pgsql-performance-owner@postgresql.org] On Behalf Of 
> Rolf Østvik (HA/EXA)

Have you tried "set enable_sort=off" with 8.1.2?  I'm not sure if that will
change anything because it has to do at least one sort.  Its just a lots
faster to do a hashagg + small sort than one big sort in this case.  (I
wonder if there should be enable_groupagg?)    




view thread (5+ messages)  latest in thread

Message-ID: <011e01c737f6$c449c580$8300a8c0@tridecap.com>
Permalink:  ../011e01c737f6$c449c580$8300a8c0@tridecap.com/
Also on:    postgresql.org/message-id/011e01c737f6$c449c580$8300a8c0@tridecap.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: dave@tridecap.com, rolf.ostvik@ericsson.com
  Subject: Re: Problem with grouping, uses Sort and GroupAggregate, HashAggregate is better(?)
  In-Reply-To: <011e01c737f6$c449c580$8300a8c0@tridecap.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