Re: Protect PL/PGSQL source

From: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
To: Wilton <wilton(dot)wonrath(at)microwork(dot)inf(dot)br>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Protect PL/PGSQL source
Date: 2007-02-15 18:28:55
Message-ID: b42b73150702151028q2735783s5340ff0a78991380@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2/14/07, Wilton <wilton(dot)wonrath(at)microwork(dot)inf(dot)br> wrote:
> Hello,
>
> Does anyone knows if it´s possible to protect from users see a PL/PGSQL
> source ?
>
> I have a PL/PGSQL function and I want to make it invisible to users.

stored procedure code sits in the pg_proc table as you know. access
to pg_proc is not required to run a function:

revoke select on pg_proc from public, foo;

be aware this breaks psql/pgadmin, etc for that user(s).

merlin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message RPK 2007-02-15 18:30:09 Re: Option to undo last update on table.
Previous Message Marc Evans 2007-02-15 18:21:03 Database performance comparison paper.