Re: SQL Function Slowness, 8.3.0 - Mailing list pgsql-performance

From Simon Riggs
Subject Re: SQL Function Slowness, 8.3.0
Date
Msg-id 1208449557.4259.331.camel@ebony.site
Whole thread Raw
In response to Re: SQL Function Slowness, 8.3.0  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: SQL Function Slowness, 8.3.0
Re: SQL Function Slowness, 8.3.0
List pgsql-performance
On Thu, 2008-04-17 at 12:12 -0400, Tom Lane wrote:
> Simon Riggs <simon@2ndquadrant.com> 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


pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: SQL Function Slowness, 8.3.0
Next
From: Tom Lane
Date:
Subject: Re: SQL Function Slowness, 8.3.0