Re: General performance/load issue - Mailing list pgsql-general

From Tom Lane
Subject Re: General performance/load issue
Date
Msg-id 15191.1322330919@sss.pgh.pa.us
Whole thread Raw
In response to Re: General performance/load issue  (Tomas Vondra <tv@fuzzy.cz>)
Responses Re: General performance/load issue  (Tomas Vondra <tv@fuzzy.cz>)
List pgsql-general
Tomas Vondra <tv@fuzzy.cz> writes:
> Anyway the output is a bit strange. It's writing a lot of temp files
> that are significantly smaller (about 3MB) than work_mem (128MB).

The most obvious guess about what's doing that is a hash join that has
a drastic overestimate of how many rows it has to hash, so that it's
batching the join unnecessarily.  AFAIR, sorts don't spill to disk until
they've actually reached work_mem, but hash join works differently.

            regards, tom lane

pgsql-general by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: General performance/load issue
Next
From: Tomas Vondra
Date:
Subject: Re: General performance/load issue