pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ken Geis <kgeis@speakeasy.org>
Cc: Bruno Wolff III <bruno@wolff.to>
Cc: pgsql-performance@postgresql.org
Subject: Re: bad estimates
Date: Sat, 30 Aug 2003 10:35:52 -0400
Message-ID: <22271.1062254152@sss.pgh.pa.us> (raw)
In-Reply-To: <3F50308E.6070100@speakeasy.org>
References: <20030829025109.GD4373@wolff.to>
	<3F4EBF7E.8020602@speakeasy.org>
	<20030829030156.GF4373@wolff.to>
	<3F4EC1D0.5010503@speakeasy.org>
	<20030829033818.GA5577@wolff.to>
	<3F4ECC78.7090502@speakeasy.org>
	<20030829040519.GA5746@wolff.to>
	<3F4ED1DC.50808@speakeasy.org>
	<20030829042453.GA5931@wolff.to>
	<3F4F0777.8090503@speakeasy.org>
	<20030830025503.GA30691@wolff.to>
	<3F50308E.6070100@speakeasy.org>

Ken Geis <kgeis@speakeasy.org> writes:
>  From what I've learned, we want to convince the optimizer to use a 
> table scan; that's a good thing.  I want it to use hashed aggregates, 
> but I can't convince it to (unless maybe I removed all of the 
> statistics.)

You probably just need to increase sort_mem.  Multiple aggregates take
more RAM to process in a hashtable style ...

			regards, tom lane



view thread (25+ messages)  latest in thread

Message-ID: <22271.1062254152@sss.pgh.pa.us>
Permalink:  ../22271.1062254152@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22271.1062254152@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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, kgeis@speakeasy.org, bruno@wolff.to
  Subject: Re: bad estimates
  In-Reply-To: <22271.1062254152@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