X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2ED9ED6D8C for ; Mon, 22 Aug 2005 21:54:29 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 64584-09 for ; Tue, 23 Aug 2005 00:54:28 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 3B71CD6D78 for ; Mon, 22 Aug 2005 21:54:26 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j7N0sUlM026870; Mon, 22 Aug 2005 20:54:31 -0400 (EDT) To: John Mendenhall Cc: pgsql-performance list Subject: Re: complex query performance assistance request In-reply-to: <20050822210751.GA32479@calvin.surfutopia.net> References: <20050821034841.GA28968@calvin.surfutopia.net> <20050822182138.GA30818@calvin.surfutopia.net> <20830.1124741718@sss.pgh.pa.us> <20050822210751.GA32479@calvin.surfutopia.net> Comments: In-reply-to John Mendenhall message dated "Mon, 22 Aug 2005 14:07:51 -0700" Date: Mon, 22 Aug 2005 20:54:30 -0400 Message-ID: <26869.1124758470@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200508/333 X-Sequence-Number: 14080 John Mendenhall writes: > Would it be best to attempt to rewrite it for IN? > Or, should we try to tie it in with a join? Couldn't say without a deeper understanding of what you're trying to accomplish. > BTW, what does the Materialize query plan element mean? Means "run the contained subplan once, and save the results aside in a buffer; on subsequent loops, just pass back the buffer contents instead of re-running the subplan". regards, tom lane