Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 9BE929FB591 for ; Mon, 4 Jun 2007 10:12:40 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 15174-04 for ; Mon, 4 Jun 2007 10:12:37 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from main2.mycybernet.net (main2.mycybernet.net [209.222.63.140]) by postgresql.org (Postfix) with ESMTP id 614079FB58E for ; Mon, 4 Jun 2007 10:12:37 -0300 (ADT) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=phlogiston.dydns.org) by main2.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1HvCMN-0001Q9-Lu for pgsql-sql@postgresql.org; Mon, 04 Jun 2007 09:12:35 -0400 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id 60BDB3F9E; Mon, 4 Jun 2007 09:12:30 -0400 (EDT) Date: Mon, 4 Jun 2007 09:12:30 -0400 From: Andrew Sullivan To: pgsql-sql@postgresql.org Subject: Re: Versionning (was: Whole-row comparison) Message-ID: <20070604131230.GI32320@phlogiston.dyndns.org> References: <473557.7523.qm@web31803.mail.mud.yahoo.com> <20070601174711.GH24299@phlogiston.dyndns.org> <20070601185125.GJ24299@phlogiston.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/11 X-Sequence-Number: 28501 On Mon, Jun 04, 2007 at 01:40:18PM +0300, christian.roche.ext@nsn.com wrote: > case ? The nicest thing would really to have parametrized view. Is > there any fundamental reason why such a beast does not exist, or is it > only postgres (compared to higher-level RDBMS) ? I don't think there's a fundamental reason, no. But why couldn't you change your query to issue the SRF directly, with the parameter: SELECT * FROM some_srf(param1, param2)? A -- Andrew Sullivan | ajs@crankycanuck.ca "The year's penultimate month" is not in truth a good way of saying November. --H.W. Fowler