Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 1C0171335B36 for ; Mon, 15 Nov 2010 17:04:05 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 00555-03 for ; Mon, 15 Nov 2010 21:03:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id A679B1337B2F for ; Mon, 15 Nov 2010 17:03:57 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id oAFL3tBq007144; Mon, 15 Nov 2010 16:03:55 -0500 (EST) To: =?iso-8859-2?Q?Artur_Zaj=B1c?= cc: "'Robert Haas'" , pgsql-performance@postgresql.org Subject: Re: Difference between explain analyze and real execution time In-reply-to: <009d01cb8505$ce738900$6b5a9b00$@ang.com.pl> References: <000001cb849e$1dce2720$596a7560$@ang.com.pl> <009d01cb8505$ce738900$6b5a9b00$@ang.com.pl> Comments: In-reply-to =?iso-8859-2?Q?Artur_Zaj=B1c?= message dated "Mon, 15 Nov 2010 21:43:48 +0100" Date: Mon, 15 Nov 2010 16:03:55 -0500 Message-ID: <7142.1289855035@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/251 X-Sequence-Number: 41275 =?iso-8859-2?Q?Artur_Zaj=B1c?= writes: > I've changed default_statistics_target to 10000 and I think that is a > reason. That's certainly going to cost you something, but this seems like a mighty large slowdown, especially for a non-join query. What datatype is te.idtr, anyway? regards, tom lane