Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id EDFF913382CD for ; Thu, 14 Oct 2010 01:59:40 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 44017-03 for ; Thu, 14 Oct 2010 04:58:19 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lerner.co.il (unknown [69.55.232.87]) by mail.postgresql.org (Postfix) with ESMTP id E31C41337DB4 for ; Wed, 13 Oct 2010 16:35:18 -0300 (ADT) Received: by lerner.co.il (Postfix, from userid 1003) id D31FD5D6104; Wed, 13 Oct 2010 21:35:14 +0200 (IST) Received: from Reuvens-MacBook-Pro.local (bzq-84-108-249-150.cablep.bezeqint.net [84.108.249.150]) by lerner.co.il (Postfix) with ESMTPS id 7D6415D6104; Wed, 13 Oct 2010 21:35:00 +0200 (IST) Message-ID: <4CB609DE.2000405@lerner.co.il> Date: Wed, 13 Oct 2010 21:34:54 +0200 From: "Reuven M. Lerner" User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: Tom Lane CC: pgsql-performance@postgresql.org Subject: Re: SQL functions vs. PL/PgSQL functions References: <5549b04ab43625e39f74a859a2801ec3.squirrel@squirrelmail.lerner.co.il> <25232.1286979266@sss.pgh.pa.us> In-Reply-To: <25232.1286979266@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.593 tagged_above=-10 required=5 tests=BAYES_50=0.8, RDNS_NONE=0.793 X-Spam-Level: * X-Archive-Number: 201010/220 X-Sequence-Number: 40638 Wow. Thanks so much to all of you for the thoughtful and helpful responses! Reuven