Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UO7SU-0003mJ-S9 for pgsql-performance@arkaria.postgresql.org; Fri, 05 Apr 2013 14:17:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UO7SU-0003DK-CI for pgsql-performance@arkaria.postgresql.org; Fri, 05 Apr 2013 14:17:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UO7ST-0003DF-LU for pgsql-performance@postgresql.org; Fri, 05 Apr 2013 14:17:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UO7SM-00025r-Mc for pgsql-performance@postgresql.org; Fri, 05 Apr 2013 14:17:37 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r35EHS3A004114; Fri, 5 Apr 2013 10:17:28 -0400 (EDT) From: Tom Lane To: Franck Routier cc: pgsql-performance@postgresql.org Subject: Re: What happens between end of explain analyze and end of query execution ? In-reply-to: <515ED7BC.40907@axege.com> References: <515D92BF.5000309@axege.com> <515D9FC5.7030105@axege.com> <18910.1365092713@sss.pgh.pa.us> <515DCB34.6040801@axege.com> <6354.1365102532@sss.pgh.pa.us> <515ED7BC.40907@axege.com> Comments: In-reply-to Franck Routier message dated "Fri, 05 Apr 2013 15:55:08 +0200" Date: Fri, 05 Apr 2013 10:17:28 -0400 Message-ID: <4113.1365171448@sss.pgh.pa.us> X-Pg-Spam-Score: -4.3 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Franck Routier writes: > Le 04/04/2013 21:08, Tom Lane a écrit : >> Hmph. Can't see any reason for that to take a remarkably long time to >> plan. Can you put together a self-contained test case demonstrating >> excessive planning time? What PG version is this, anyway? > What I notice is that removing joins has a huge impact on the time > explain takes to return: Hm, kind of looks like it's just taking an unreasonable amount of time to process each join clause. What have you got the statistics targets set to in this database? What are the datatypes of the join columns? And (again) what PG version is this exactly? regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance