pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: daniel.heden@sweco.se
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7602: Select with many joins against the same table is very slow compared to 9.2.0.
Date: Tue, 16 Oct 2012 10:30:31 +0800
Message-ID: <507CC6C7.6060200@ringerc.id.au> (raw)
In-Reply-To: <E1TNiKw-0004uY-Nu@wrigleys.postgresql.org>
References: <E1TNiKw-0004uY-Nu@wrigleys.postgresql.org>

On 10/15/2012 06:55 PM, daniel.heden@sweco.se wrote:
> The following bug has been logged on the website:
>
> Bug reference:      7602
> Logged by:          Daniel Hedén
> Email address:      daniel.heden@sweco.se
> PostgreSQL version: 9.2.1
> Operating system:   Windows 7 / Vista 64-Bit
> Description:
>
> Select with many joins against the same table is very slow compared to
> 9.2.0.
> In my case 16 times, this query takes a second max on 9.2.0 but on 9.2.1 it
> takes more than 30 minutes.

Could you have accidentally reset `join_collapse_limit` to its default 
value?

Show `EXPLAIN ANALYZE` output for both old and new cases, if possible. 
At least for the new one.

(Please reply to the mailing list, not to me).

--
Craig Ringer




view thread (3+ messages)  latest in thread

Message-ID: <507CC6C7.6060200@ringerc.id.au>
Permalink:  ../507CC6C7.6060200@ringerc.id.au/
Also on:    postgresql.org/message-id/507CC6C7.6060200@ringerc.id.au

 · 

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: ringerc@ringerc.id.au, daniel.heden@sweco.se
  Subject: Re: BUG #7602: Select with many joins against the same table is very slow compared to 9.2.0.
  In-Reply-To: <507CC6C7.6060200@ringerc.id.au>
  References: <E1TNiKw-0004uY-Nu@wrigleys.postgresql.org> <507CC6C7.6060200@ringerc.id.au>

* 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