pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: gdh@eyjar.is
Cc: pgsql-performance@postgresql.org
Subject: Re: Query slow after VACUUM ANALYZE
Date: Mon, 05 Sep 2005 23:53:41 -0400
Message-ID: <14135.1125978821@sss.pgh.pa.us> (raw)
In-Reply-To: <1913.213.220.100.208.1125483764.squirrel@www.eyjar.is>
References: <1913.213.220.100.208.1125483764.squirrel@www.eyjar.is>

gdh@eyjar.is writes:
> Any ideas what I can do to make the query running in < 10 seconds?

Increase work_mem (or sort_mem in older releases).  PG is dropping
back from the hash plan because it thinks the hashtable won't fit
in work_mem.

			regards, tom lane



view thread (3+ messages)

Message-ID: <14135.1125978821@sss.pgh.pa.us>
Permalink:  ../14135.1125978821@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14135.1125978821@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, gdh@eyjar.is
  Subject: Re: Query slow after VACUUM ANALYZE
  In-Reply-To: <14135.1125978821@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