Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 71C5864FD29 for ; Thu, 18 Dec 2008 21:25:36 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 63907-06 for ; Thu, 18 Dec 2008 21:25:34 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [202.61.230.242]) by mail.postgresql.org (Postfix) with ESMTP id 6CD4564FC42 for ; Thu, 18 Dec 2008 21:25:33 -0400 (AST) Received: from mail.postnewspapers.com.au (202-89-185-120.static.dsl.amnet.net.au [202.89.185.120]) by www.postnewspapers.com.au (Postfix) with ESMTP id 9EE8A5C1AB; Fri, 19 Dec 2008 10:25:31 +0900 (WST) Received: from localhost (access [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id 675ED1E0437; Fri, 19 Dec 2008 10:25:31 +0900 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (access.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id nwfaA1TxGyq2; Fri, 19 Dec 2008 10:25:30 +0900 (WST) Received: from [192.168.44.68] (203-59-94-220.perm.iinet.net.au [203.59.94.220]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTP id 97BFA1E0436; Fri, 19 Dec 2008 10:25:30 +0900 (WST) Message-ID: <494AF809.8060503@postnewspapers.com.au> Date: Fri, 19 Dec 2008 10:25:29 +0900 From: Craig Ringer User-Agent: Thunderbird 2.0.0.18 (X11/20081125) MIME-Version: 1.0 To: Daniel Cristian Cruz Cc: pgsql-performance@postgresql.org Subject: Re: Fwd: Not so simple query and a half million loop References: <48d0cacb0812010526i7c51b29fs9319618b3aaf3f49@mail.gmail.com> <48d0cacb0812020802t1ae88fcfse12f2526ab1c993b@mail.gmail.com> In-Reply-To: <48d0cacb0812020802t1ae88fcfse12f2526ab1c993b@mail.gmail.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200812/169 X-Sequence-Number: 32205 Daniel Cristian Cruz wrote: > No one knows why I got "actual time=0.014..0.570 rows=30 loops=511222" > and "actual time=0.005..0.006 rows=1 loops=15158976"? You've already tried increasing the stats targets and ANALYZEing, so: Please post the output of VACUUM ANALYZE VERBOSE on the tables of interest. > I've tryied 4 times to post this message to pgsql-performance without > success... No return, even an error... Well, the message arrives. However, many people ignore anything with "Fwd:" in it in a mailing list, since it's someone lazily resending a message by clicking on the forward button thus they've probably seen the message before. -- Craig Ringer