pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: brian@omniti.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7626: Query planner never returns, uses 100% CPU
Date: Mon, 29 Oct 2012 14:00:28 -0400
Message-ID: <21286.1351533628@sss.pgh.pa.us> (raw)
In-Reply-To: <E1TSsD5-00077c-4C@wrigleys.postgresql.org>
References: <E1TSsD5-00077c-4C@wrigleys.postgresql.org>

brian@omniti.com writes:
> Running this causes the thread to use 100% CPU and never returns (or at
> least not for longer than my patience runs out).
> This returns just fine on 8.4.1 and on 9.2beta.

Hmm ... seems to be a consequence of commit
3b8968f25232ad09001bf35ab4cc59f5a501193e.  I wrote in that patch

+        * This looks expensive, but in practical cases there won't be very many
+        * distinct sets of outer rels to consider.

but evidently that was too optimistic :-(.  Will need to think about
suitable heuristics for limiting the sets of outer relations we
consider building parameterized paths with.

			regards, tom lane




view thread (3+ messages)

Message-ID: <21286.1351533628@sss.pgh.pa.us>
Permalink:  ../21286.1351533628@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21286.1351533628@sss.pgh.pa.us

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, brian@omniti.com
  Subject: Re: BUG #7626: Query planner never returns, uses 100% CPU
  In-Reply-To: <21286.1351533628@sss.pgh.pa.us>
  References: <E1TSsD5-00077c-4C@wrigleys.postgresql.org> <21286.1351533628@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