Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 13532632597 for ; Thu, 4 Feb 2010 04:29:04 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 18548-09 for ; Thu, 4 Feb 2010 08:28:49 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f228.google.com (mail-bw0-f228.google.com [209.85.218.228]) by mail.postgresql.org (Postfix) with ESMTP id 02D6863014E for ; Thu, 4 Feb 2010 04:28:52 -0400 (AST) Received: by bwz28 with SMTP id 28so605067bwz.34 for ; Thu, 04 Feb 2010 00:28:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=0RWU0Kz89aH059RcKWrHNsMk2dYpctBZvj8YEi/cY1Y=; b=YTvqZRibp+99qrg70zixkiGY/QoDELcPPwh9k916HQIjvHuvZi0bpWoxAa8ULYjPOO PPz85TxsLWnrEuCFTTV/88Xp04LEJaqAwXu0qO9RczuohRz9Lf/tmvZ20JFwvcGCTNBR iceT/jPP+uGdHoLsZUbN7ccjrq+8UqCp0nSg8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=VO5W6Zf7UJuRZOGkzRwmUGopLUisi1Mrk7OSNW4M85dmGxmp/YoI4SwxvQcwgYI+1+ HdPOXQmiGaVjmq5yQTZq54AGCy0Ta9hmKKIKBZHy+WS/T3uxDGoX7XhGZxCx9GxQr7v9 n3/NY+dveCkTgva8mGiLEEdM1U244mSOFMtNI= MIME-Version: 1.0 Received: by 10.204.133.21 with SMTP id d21mr424198bkt.108.1265272131591; Thu, 04 Feb 2010 00:28:51 -0800 (PST) In-Reply-To: References: <603c8f071002031905w51dbea37y148284ea6546feda@mail.gmail.com> Date: Thu, 4 Feb 2010 08:28:51 +0000 Message-ID: <2f4958ff1002040028j29e907c6l47e1f5efe83b667d@mail.gmail.com> Subject: Re: Slow query: table iteration (8.3) From: =?UTF-8?Q?Grzegorz_Ja=C5=9Bkiewicz?= To: Glenn Maynard Cc: pgsql-performance@postgresql.org Content-Type: text/plain; charset=UTF-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.391 tagged_above=-10 required=5 tests=AWL=-0.281, BAYES_05=-1.11 X-Spam-Level: X-Archive-Number: 201002/78 X-Sequence-Number: 37499 isn't that possible with window functions and cte ? rank, and limit ?