Re: Problem with grouping, uses Sort and GroupAggregate, HashAggregate is better(?)

Поиск
Список
Период
Сортировка
Искать
От
Rolf Østvik (HA/EXA)
Тема
Re: Problem with grouping, uses Sort and GroupAggregate, HashAggregate is better(?)
Дата
Msg-id
D7E5DB1F5F917E45AA4DF9F9F1306BEE31E2EC@esealmw111
Ответ на
Список
Дерево обсуждения
Problem with grouping, uses Sort and GroupAggregate, HashAggregate is better(?) Rolf Østvik (HA/EXA) <rolf.ostvik@ericsson.com>
Re: Problem with grouping, uses Sort and GroupAggregate, HashAggregate is better(?) "Dave Dutcher" <dave@tridecap.com>
Re: Problem with grouping, uses Sort and GroupAggregate, HashAggregate is better(?) Rolf Østvik (HA/EXA) <rolf.ostvik@ericsson.com>
Re: Problem with grouping, uses Sort and GroupAggregate, HashAggregate is better(?) Rolf Østvik (HA/EXA) <rolf.ostvik@ericsson.com>
Re: Problem with grouping, uses Sort and GroupAggregate, HashAggregate is better(?) Dave Cramer <pg@fastcrypt.com>
 

> -----Original Message-----
> From: Dave Dutcher [mailto:dave@tridecap.com] 
> Sent: Sunday, January 14, 2007 5:12 PM
> To: Rolf Østvik (HA/EXA); pgsql-performance@postgresql.org
> Subject: RE: [PERFORM] Problem with grouping, uses Sort and 
> GroupAggregate, HashAggregate is better(?)
> 
> > -----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?)    

Did you mean enable_sort = 'off' for 8.2.1?


I tried to set enable_sort = 'off' for both the
8.1.4 server and the 8.2.1 server.
Both servers used the same plan as Run 4 and Run 3 respectively.
There were of course some changes in the planner cost for the sort 
steps, but the execution times was of course the same.

Regards
Rolf Østvik
В списке pgsql-performance по дате отправления
От: Luke Lonergan
Дата:
От: Florian Weimer
Дата:
Сообщение: pg_trgm performance
FAQ