From: Tom Lane <tgl@sss.pgh.pa.us>
To: henk de wit <henk53602@hotmail.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Query with limit goes from few ms to hours
Date: Sun, 14 Oct 2012 12:15:32 -0400
Message-ID: <26280.1350231332@sss.pgh.pa.us> (raw)
In-Reply-To: <COL104-W143C114F67F241C003CB4F5720@phx.gbl>
References: <COL104-W53D001BC091CFA02343989F5720@phx.gbl>
<COL104-W143C114F67F241C003CB4F5720@phx.gbl>
henk de wit <henk53602@hotmail.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, henk53602@hotmail.com
Subject: Re: Query with limit goes from few ms to hours
In-Reply-To: <26280.1350231332@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox