Re: Compiling pl/pgsql functions

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Compiling pl/pgsql functions
Дата
Msg-id 200402191126.26465.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: Compiling pl/pgsql functions  ("Rodrigo Sakai" <rodrigo@2bfree.com.br>)
Ответы Re: Compiling pl/pgsql functions  (Richard Huxton <dev@archonet.com>)
Список pgsql-sql
Rodrigo,

>   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??????

No, there is not.   Nor is there likely to be for any PL, as it would add 
significant overhead for no real gain.

You have, as I see it, 3 choices:

1) You can give up on code obfuscation and simply provide the functions 
normally, and rely on your contracts and copyright law to protect your code.  
This is what I do, and I feel pretty strongly that code obfuscation is a dumb 
and ineffective way to protect copyright.   Personally, I find it hard to 
believe that any of my PL/SQL functions (or yours) are so brilliant that they 
need trade secret protection.

2) You can write your functions in C and compile them.

3) You can carefully engineer your database permissions so that the user can 
have almost full DBA powers without being the superuser, and deny them direct 
access to the pg_proc table.   This would be a real PITA, though.

-- 
-Josh BerkusAglio Database SolutionsSan Francisco



В списке pgsql-sql по дате отправления:

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: Compiling pl/pgsql functions
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: DISTINCT ON troubles