Re: How to hide stored procedure's bodies from specific user - Mailing list pgsql-general

From Saimon Lim
Subject Re: How to hide stored procedure's bodies from specific user
Date
Msg-id CAOkVcQ6RKcGsuqEEYiv_4HQ7Kfi=TgQevMpGopZZe+oJZdMqRw@mail.gmail.com
Whole thread Raw
In response to How to hide stored procedure's bodies from specific user  (Saimon Lim <aimon.slim@gmail.com>)
Responses Re: How to hide stored procedure's bodies from specific user
Re: How to hide stored procedure's bodies from specific user
List pgsql-general
For clarification - I run the commands using psql program.

2015-02-11 12:54 GMT+03:00 Saimon Lim <aimon.slim@gmail.com>:
Hi
I want to hide my own stored procedures' bodies from the specific user.
As far as I know, procedure's body is visible in the pg_catalog.pg_proc table.

So, I did the following:
REVOKE ALL ON pg_catalog.pg_proc FROM PUBLIC;

And after it, when user tries:
SELECT * from pg_proc;

The following error occurs:
ERROR:  permission denied for relation pg_proc

It turns out that user don't have access to the body of the procedure.
But I still can get stored procedure's body using
\sf function_name 
or with 
\ef function_name

So, how can I completely hide my own stored procedure's bodies from this user?

Thanks in advance
Saimon

pgsql-general by date:

Previous
From: Daniel LaMotte
Date:
Subject: Issue dumping schema using readonly user
Next
From: Adrian Klaver
Date:
Subject: Re: Issue dumping schema using readonly user