X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6FA925678A for ; Mon, 21 Mar 2005 05:13:17 +0000 (GMT) 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 51561-07 for ; Mon, 21 Mar 2005 05:13:16 +0000 (GMT) Received: from mailbox.samurai.com (mailbox.samurai.com [205.207.28.82]) by svr1.postgresql.org (Postfix) with ESMTP id 20CA356742 for ; Mon, 21 Mar 2005 05:13:15 +0000 (GMT) Received: from localhost (mailbox.samurai.com [205.207.28.82]) by mailbox.samurai.com (Postfix) with ESMTP id 78FFA18D039; Mon, 21 Mar 2005 00:13:14 -0500 (EST) Received: from mailbox.samurai.com ([205.207.28.82]) by localhost (mailbox.samurai.com [205.207.28.82]) (amavisd-new, port 10024) with LMTP id 71915-02-7; Mon, 21 Mar 2005 00:13:12 -0500 (EST) Received: from [61.88.101.19] (unknown [61.88.101.19]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailbox.samurai.com (Postfix) with ESMTP id D0F4F18D03A; Mon, 21 Mar 2005 00:13:11 -0500 (EST) Message-ID: <423E57E5.4070405@samurai.com> Date: Mon, 21 Mar 2005 16:13:09 +1100 From: Neil Conway User-Agent: Debian Thunderbird 1.0 (X11/20050116) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bruno Wolff III Cc: Keith Worthington , pgsql-performance@postgresql.org Subject: Re: View vs function References: <423E420D.1020503@NarrowPathInc.com> <20050321042720.GA27098@wolff.to> In-Reply-To: <20050321042720.GA27098@wolff.to> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at mailbox.samurai.com X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.032 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/413 X-Sequence-Number: 11118 Bruno Wolff III wrote: > Functions are just black boxes to the planner. ... unless the function is a SQL function that is trivial enough for the planner to inline it into the plan of the invoking query. Currently, we won't inline set-returning SQL functions that are used in the query's rangetable, though. This would be worth doing, I think -- I'm not sure how much work it would be, though. -Neil