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 51AD25362C for ; Sat, 9 Apr 2005 12:29:19 +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 43465-05 for ; Sat, 9 Apr 2005 11:29:10 +0000 (GMT) Received: from boutiquenumerique.com (boutiquenumerique.com [82.67.9.10]) by svr1.postgresql.org (Postfix) with ESMTP id 21E69539EA for ; Sat, 9 Apr 2005 12:29:09 +0100 (BST) Received: (qmail 12008 invoked from network); 9 Apr 2005 13:29:35 +0200 Received: from unknown (HELO localhost) (boutiquenumerique-lists@192.168.0.4) by boutiquenumerique.com with SMTP; 9 Apr 2005 13:29:35 +0200 To: "Tom Lane" , "Alvaro Herrera" Cc: "Josh Berkus" , "Michael Fuhr" , pgsql-performance@postgresql.org Subject: Re: Functionscan estimates References: <200504081515.50340.josh@agliodbs.com> <19038.1113019256@sss.pgh.pa.us> <20050408235731.GA6279@dcc.uchile.cl> <200504081604.27845.josh@agliodbs.com> <20050408224556.GC19458@dcc.uchile.cl> <20050408223820.GA17450@winnie.fuhr.org> Message-ID: Date: Sat, 09 Apr 2005 13:29:10 +0200 From: PFC Organization: =?iso-8859-15?Q?La_Boutique_Num=E9rique?= Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In-Reply-To: <19038.1113019256@sss.pgh.pa.us> User-Agent: Opera M2(BETA2)/8.0 (Linux, build 987) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.003 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/186 X-Sequence-Number: 11583 > But with all due respect to Joe, I think the reason that stuff got > trimmed is that it didn't work very well. In most cases it's > *hard* to write an estimator for a SRF. Let's see you produce > one for dblink() for instance ... Good one... Well in some cases it'll be impossible, but suppose I have a function get_id_for_something() which just grabs an ID using dblink, then I know it returns one row, and pg would be interested in that information too !