Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TNiL4-0000SK-KF for pgsql-bugs@postgresql.org; Mon, 15 Oct 2012 10:56:02 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TNiKz-0006Cm-3n for pgsql-bugs@postgresql.org; Mon, 15 Oct 2012 10:56:01 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TNiKx-0007iV-EL for pgsql-bugs@postgresql.org; Mon, 15 Oct 2012 10:55:56 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1TNiKw-0004uY-Nu for pgsql-bugs@postgresql.org; Mon, 15 Oct 2012 10:55:54 +0000 Date: Mon, 15 Oct 2012 10:55:54 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7602: Select with many joins against the same table is very slow compared to 9.2.0. To: pgsql-bugs@postgresql.org From: daniel.heden@sweco.se X-Pg-Spam-Score: -2.3 (--) X-Archive-Number: 201210/142 X-Sequence-Number: 34442 The following bug has been logged on the website: Bug reference: 7602 Logged by: Daniel Hed=C3=A9n 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. The database is the same in both cases and running analyze does not help. On request i could send the SQL and a database backup.