Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 723F62E005B for ; Thu, 17 Apr 2008 13:24:38 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 91433-03 for ; Thu, 17 Apr 2008 13:24:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from outmail136086.authsmtp.com (outmail136086.authsmtp.com [62.13.136.86]) by developer.postgresql.org (Postfix) with ESMTP id 609FA2E0052 for ; Thu, 17 Apr 2008 13:24:35 -0300 (ADT) Received: from mail.authsmtp.com (mail.authsmtp.com [62.13.128.187]) by punt2.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id m3HGOUUi074039; Thu, 17 Apr 2008 17:24:30 +0100 (BST) Received: from [192.168.0.3] (85-211-74-64.dyn.gotadsl.co.uk [85.211.74.64]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m3HGORWH027982; Thu, 17 Apr 2008 17:24:27 +0100 (BST) Subject: Re: SQL Function Slowness, 8.3.0 From: Simon Riggs To: Tom Lane Cc: "Gavin M. Roy" , pgsql-performance@postgresql.org In-Reply-To: <20970.1208448770@sss.pgh.pa.us> References: <8328.1208358587@sss.pgh.pa.us> <1208448751.4259.317.camel@ebony.site> <20970.1208448770@sss.pgh.pa.us> Content-Type: text/plain Date: Thu, 17 Apr 2008 17:25:57 +0100 Message-Id: <1208449557.4259.331.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 7bit X-Server-Quench: c0496d6e-0c9a-11dd-941c-001185d377ca X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadRtFaQJbbElD HGQLW1xEUVp7W2d/ aQIfZQBDYEtPQQJu Tk5NXVBXCwUmXB95 cWF8NWFydQJPcHw+ ZEBgWD4IXEBzcxJ7 F1NURmRXeGZhPDQC WURZJB5UcAJLdhoR aVd4ByJDAzANdhEA MjUdGAoUCH1kEQAd bBwLJk4TRkBDJTo7 WBYPBi5rVR1DHGNr RyAn X-Authentic-SMTP: 61633235383639.squirrel.dmpriest.net.uk:932/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/240 X-Sequence-Number: 29733 On Thu, 2008-04-17 at 12:12 -0400, Tom Lane wrote: > Simon Riggs writes: > > I think it would help if there was some way to prepare functions to > > allow them to be posted and understood more easily. These would help: > > > * a name obfuscator, so people can post functions without revealing > > inner workings of their company and potentially lose intellectual > > property rights over code posted in that way > > > * a pretty printer, so we can better understand them when we see 'em > > Aren't these suggestions mutually contradictory? No, they're orthogonal. The pretty printer would get the indenting and line feeds correct, the obfuscator would replace actual names with "A", "B" or "Table1" etc.. Obfuscating the names would make the code harder to understand, true, but only if the code is written in English (or your language-of-choice). It wouldn't damage our ability to read other language code at all. -- Simon Riggs 2ndQuadrant http://www.2ndQuadrant.com