X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8FBE3329E69 for ; Mon, 13 Sep 2004 16:16:40 +0100 (BST) 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 52459-07 for ; Mon, 13 Sep 2004 15:16:35 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 44846329D14 for ; Mon, 13 Sep 2004 16:16:35 +0100 (BST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i8DFGXvW010382; Mon, 13 Sep 2004 11:16:33 -0400 (EDT) To: David Garamond Cc: pgsql-sql@postgresql.org Subject: Re: Interpolation and extrapolation in SQL In-reply-to: <4145B6C4.1080605@zara.6.isreserved.com> References: <4145B6C4.1080605@zara.6.isreserved.com> Comments: In-reply-to David Garamond message dated "Mon, 13 Sep 2004 22:03:32 +0700" Date: Mon, 13 Sep 2004 11:16:33 -0400 Message-ID: <10381.1095088593@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/96 X-Sequence-Number: 18942 David Garamond writes: > 2) Does the optimizer cache the result of identical subqueries (e.g. :x1 > or :x2, which is mentioned several times in the query)? No. regards, tom lane