Re: Query with limit goes from few ms to hours

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: henk de wit <henk53602(at)hotmail(dot)com>
Cc: "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Query with limit goes from few ms to hours
Date: 2012-10-14 16:15:32
Message-ID: 26280.1350231332@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

henk de wit <henk53602(at)hotmail(dot)com> writes:
> For some reason the mailinglist software seems to block the email as soon as the planner details are in it, so I pasted those on pastebin.com: http://pastebin.com/T5JTwh5T

You need a less horrid estimate for the join size. Possibly an ANALYZE
on the parent table (stream_store) would help.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Shiran Kleiderman 2012-10-15 00:45:06 Re: Memory issues
Previous Message Stefan Keller 2012-10-14 12:22:41 Re: Index over all partitions (aka global index)?