Re: Obfuscated stored procedures (was Re: Oracle and Postgresql)

From: Casey Allen Shobe <cshobe(at)bepress(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bill Moran <wmoran(at)collaborativefusion(dot)com>, David Fetter <david(at)fetter(dot)org>, Greg Smith <gsmith(at)gregsmith(dot)com>, Jonathan Bond-Caron <jbondc(at)openmv(dot)com>, "'Postgres General List'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Obfuscated stored procedures (was Re: Oracle and Postgresql)
Date: 2008-09-25 20:05:26
Message-ID: C262B817-9165-4EC7-A3E4-D3300A9206DF@bepress.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-www

On Sep 15, 2008, at 7:19 PM, Tom Lane wrote:
> The problem is that the people who ask for this type of feature are
> usually
> imagining that they can put their code on customer-controlled machines
> and it will be safe from the customer's eyes.

That's a broken expectation. All that can realistically be expected
is database/catalog-level constraints.

> Well, it isn't, and I don't think Postgres should encourage them to
> think it is.

Adding such a feature would NOT be encouraging them to think this -
the documentation could be very explicit about this fact. Maybe
that's what Oracle is selling, and that's crappy of them, but that
doesn't mean we should use that as justification to not add a more
appropriate implementation.

As for the expectation above - could pl/pgsql be made compilable? It
would seem easy to translate pl/pgsql code into C and compile a C
function. That *could* go onto customer-controlled machines and be
safe from the customer's eyes.

FWIW, I think most people who want to hide code aren't concerned about
IP, they're concerned about clients seeing embarrassingly bad/sloppy
code. But there *are* some very real and legitimate needs for this,
though it's a small minority of those who think they do.

Cheers,
--
Casey Allen Shobe
Database Architect, The Berkeley Electronic Press

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Louis-David Mitterrand 2008-09-25 20:07:45 Re: group by error message?
Previous Message Kynn Jones 2008-09-25 20:05:11 Re: How to select rows that are the max for each subcategory?

Browse pgsql-www by date

  From Date Subject
Next Message Bruce Momjian 2008-09-25 20:10:30 Re: Oracle and Postgresql
Previous Message Casey Allen Shobe 2008-09-25 19:57:47 Re: Oracle and Postgresql