X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 14417D1E0CD for ; Thu, 19 Feb 2004 18:05:47 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 55169-09 for ; Thu, 19 Feb 2004 14:05:42 -0400 (AST) Received: from hm61.locaweb.com.br (hm61.locaweb.com.br [200.213.197.161]) by svr1.postgresql.org (Postfix) with SMTP id A88E0D1B456 for ; Thu, 19 Feb 2004 14:05:39 -0400 (AST) Received: (qmail 4029 invoked from network); 19 Feb 2004 18:04:54 -0000 Received: from hm10.locaweb.com.br (200.246.179.88) by hm61.locaweb.com.br with QMTP; 19 Feb 2004 18:04:54 -0000 Received: (qmail 31455 invoked by uid 41632); 19 Feb 2004 18:05:21 -0000 Message-ID: <20040219180521.31448.qmail@hm10.locaweb.com.br> From: "Rodrigo Sakai" Date: Thu, 19 Feb 2004 15:05:21 -0200 To: pgsql-sql@postgresql.org Subject: Re: Compiling pl/pgsql functions References: In-Reply-To: X-Mailer: LocaMail X-IPAddress: 200.168.66.138 X-Sender: rodrigo@2bfree.com.br MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/280 X-Sequence-Number: 16970 >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?????? Thanks for all!!! ===================== Rodrigo Sakai Database Programmer rodrigo@2bfree.com.br http://www.2bfree.com.br Tel: (55) (11) 5083-5577 Fax: (55) (11) 5549-3598 =====================