Re: Out of memory error in 8.1.0 Win32 - Mailing list pgsql-general

From Tom Lane
Subject Re: Out of memory error in 8.1.0 Win32
Date
Msg-id 2652.1151003758@sss.pgh.pa.us
Whole thread Raw
In response to Re: Out of memory error in 8.1.0 Win32  ("Todd A. Cook" <tcook@blackducksoftware.com>)
Responses Re: Out of memory error in 8.1.0 Win32
List pgsql-general
"Todd A. Cook" <tcook@blackducksoftware.com> writes:
> Tom Lane wrote:
>> Well, that's the problem right there :-(.  Have you ANALYZEd this table?

> My production table and query are more complex.  In the original, the
> query above was in a sub-select; the work-around was to create a temp
> table with the sub-query results, analyze it, and then do the larger
> query based off of the temp table.

Hmm.  One of the things that's on my TODO list is to make the planner
smarter about drilling down into sub-selects to extract statistics.
I think that's what's called for here, but your example has eliminated
all the interesting details.  Can you show us the actual query, its
EXPLAIN plan, and the definitions of the tables/views involved?

            regards, tom lane

pgsql-general by date:

Previous
From: "Relyea, Mike"
Date:
Subject: Re: Out of memory error in 8.1.0 Win32
Next
From: Jim Nasby
Date:
Subject: Re: sequence in select