Re: Compiling pl/pgsql functions

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: Rodrigo Sakai <rodrigo(at)2bfree(dot)com(dot)br>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Compiling pl/pgsql functions
Date: 2004-02-19 20:09:34
Message-ID: 403517FE.5050107@Yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Rodrigo Sakai wrote:

>>AFAIK there's not much you can do for obfuscation of pl functions right
>>now since someone will be able to see the src text in pg_proc. However,
>>are you allowing people that you don't want to see the code access to
>>write arbitrary sql to the database?
>
> Let me explain myself a little better. Actualy we sell software, and some codes of the systems we develope here are inside the database as functions, so we can compile the codes of the system (php, java, etc...), but not the codes that are in the postgresql. Some of our clientes, need that a employee of them get total access to the database instaled locally, becoming the database administrator. Thats ok, but to protect our postgresql codes (functions) i like to compile my plpgsql functions, so our client's DBA will be able to do anything he wants with the database, but will not be able to get our codes. I insist in my question, is there a way to compile the plpgsql codes or something like that, or its better to think about writting this postgres functions in C??????
>

Security through obscurity? Why do those people you want to hide your
code from direct SQL access to the database in the first place?

Jan

> Thanks for all!!!
>
> =====================
> Rodrigo Sakai
> Database Programmer
> rodrigo(at)2bfree(dot)com(dot)br
> http://www.2bfree.com.br
> Tel: (55) (11) 5083-5577
> Fax: (55) (11) 5549-3598
> =====================
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2004-02-19 20:49:09 Re: Compiling pl/pgsql functions
Previous Message Tom Lane 2004-02-19 20:06:21 Re: CHAR(n) always trims trailing spaces in 7.4