Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 0CD8D64FCEA for ; Mon, 15 Sep 2008 12:48:00 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 04681-03 for ; Mon, 15 Sep 2008 12:47:49 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id 9192564FCE7 for ; Mon, 15 Sep 2008 12:47:49 -0300 (ADT) Received: from perhan.alvh.no-ip.org (190-95-19-82.bk17-dsl.surnet.cl [190.95.19.82]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id m8FFp3Ce027816 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 15 Sep 2008 08:51:06 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id DD5CB47CAB; Mon, 15 Sep 2008 11:47:35 -0400 (CLT) Date: Mon, 15 Sep 2008 11:47:35 -0400 From: Alvaro Herrera To: Jonathan Bond-Caron Cc: "'Harald Armin Massa'" , "'David Fetter'" , "'Postgres General List'" Subject: Re: Oracle and Postgresql Message-ID: <20080915154735.GG3798@alvh.no-ip.org> References: <41c1fa08-86a0-4023-acaa-d838d5b0abf8@i24g2000prf.googlegroups.com> <48BB040E.3040108@earlham.edu> <48C5C394.1070602@gmail.com> <819df3760809131924o4ec38ebetfde7cd890767b1a9@mail.gmail.com> <1A6E6D554222284AB25ABE3229A9276201A1993B@nrtexcus702.int.asurion.com> <20080915135847.GF3666@fetter.org> <7be3f35d0809150731k575bf7aajc689a4278176b1a8@mail.gmail.com> <000001c91748$af9288b0$0eb79a10$@com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <000001c91748$af9288b0$0eb79a10$@com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Mon, 15 Sep 2008 08:51:07 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/624 X-Sequence-Number: 137631 Jonathan Bond-Caron escribió: > For me, "Oracle stored procedures can be encrypted." is a very real and > valuable argument. > It would certainly be a valuable feature in pgsql (in the enterprise space). Fortunately for you, PostgreSQL is extensible, even in the procedural languages area. This means that if you want to create a new PL that takes the encrypted code, decrypts it, and passes it to plpgsql, you can do it. It shouldn't be very difficult. There was some talk about doing this as a pgfoundry project, but no one stepped up to actually doing the work. Of course, as pointed out by Scott Marlowe, any half-decent hacker will be able to get the actual code out just like he would on encrypted PL/SQL, but the barrier for stealing the code got considerably higher at that point. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.