Re: Getting an out of memory failure.... (long email) - Mailing list pgsql-general

From Tom Lane
Subject Re: Getting an out of memory failure.... (long email)
Date
Msg-id 9826.1096343387@sss.pgh.pa.us
Whole thread Raw
In response to Getting an out of memory failure.... (long email)  (Sean Shanny <shannyconsulting@earthlink.net>)
Responses Re: Getting an out of memory failure.... (long email)  (Sean Shanny <shannyconsulting@earthlink.net>)
List pgsql-general
Sean Shanny <shannyconsulting@earthlink.net> writes:
>                     ->  Seq Scan on f_pageviews t1  (cost=0.00..11762857.88
> rows=1 width=8)
>                           Filter: ((date_key >= 610) AND (date_key <= 631))

How many rows are actually going to match that filter condition?  (The
symptoms seem to indicate that the answer is "a whole lot", not "1".)

I speculate that you're overdue for an ANALYZE on this table, and that
the planner thinks this scan is going to yield no rows because the
stats it has say there are no rows with date_key >= 610.

            regards, tom lane

pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: Foreign key order evaluation
Next
From: Sean Shanny
Date:
Subject: Re: Getting an out of memory failure.... (long email)