Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 752576504A4 for ; Mon, 10 Nov 2008 23:20:18 -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 71084-04 for ; Mon, 10 Nov 2008 23:20:17 -0400 (AST) 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 D77BB6504D0 for ; Mon, 10 Nov 2008 23:20:17 -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 mAB3K91C009475; Mon, 10 Nov 2008 22:20:09 -0500 (EST) To: "Jim 'Decibel!' Nasby" cc: Richard Huxton , postgresql performance list Subject: Re: Oddity with view (now with test case) In-reply-to: References: <3CF0CFC1-FDBA-4A61-ACAA-6AF556C4C6F4@cashnetusa.com> <3128.1226322412@sss.pgh.pa.us> <7B598355-07C0-450A-9914-B5979F48A5B3@cashnetusa.com> <49187BA7.8020403@archonet.com> <1E5A4D7D-3B95-440B-A377-B6B9F8768F7A@cashnetusa.com> <12776.1226345499@sss.pgh.pa.us> Comments: In-reply-to "Jim 'Decibel!' Nasby" message dated "Mon, 10 Nov 2008 15:06:36 -0600" Date: Mon, 10 Nov 2008 22:20:09 -0500 Message-ID: <9474.1226373609@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200811/72 X-Sequence-Number: 31803 "Jim 'Decibel!' Nasby" writes: > On Nov 10, 2008, at 1:31 PM, Tom Lane wrote: >> On my machine this runs about twice as fast as the original view. > Am I missing some magic? I'm still getting the subquery scan. Hmm, I'm getting a core dump :-( ... this seems to be busted in HEAD. 8.3 gets it right though. regards, tom lane