Re: Memory exhausted (leak?) - Mailing list pgsql-general

From Tom Lane
Subject Re: Memory exhausted (leak?)
Date
Msg-id 10972.1094767198@sss.pgh.pa.us
Whole thread Raw
In response to Re: Memory exhausted (leak?)  ("Joshua D. Drake" <jd@commandprompt.com>)
Responses Re: Memory exhausted (leak?)
List pgsql-general
"Joshua D. Drake" <jd@commandprompt.com> writes:
> 1. Are the row estimates accurate? If not increase your statistics.

Presumably not, since he'd surely never overflow memory with hashes of
only a few hundred rows.

The hash join code is capable of splitting the table into multiple
segments, but it won't do so unless the planner's estimate of the
table size is larger than sort_mem.  So the real problem IMHO is
the bad rowcount estimate.

            regards, tom lane

pgsql-general by date:

Previous
From: Aaron Birkland
Date:
Subject: Re: Memory exhausted (leak?)
Next
From: Steve Atkins
Date:
Subject: Re: How to determine a database is intact?