access to execute function without access to it content - Mailing list pgadmin-support

From Aleksandr Peshcherskikh
Subject access to execute function without access to it content
Date
Msg-id f4242f520907140911k6eb13a40j6a75aa263a868f@mail.gmail.com
Whole thread Raw
Responses Re: access to execute function without access to it content  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgadmin-support
Hello support team!
I wanna do next trick. Create user and deny access on tables to him but allow to execute stored procedures which are referenced to the denied data.
It's very ordinary use case. But I don't know how to do it in postgresql (if it is possible of course)
I tried the next way.
1. create database test (for owner postgres)
2. create table test (for owner postgres)
3. create function trytest with simple body "perform * from test;" (for owner postgres)
4. create user test;
5. grant execute trytest to test
6. revoke select on test from test
Now if I try to execute "trytest" from user "test"  it returns me error "access denied to table test"
What's wrong do I do?
Is there any way to do what i whant?
Regards, Aleksandr.

pgadmin-support by date:

Previous
From: Mark Murawski
Date:
Subject: Re: Need help urgent!!!
Next
From: Anj Adu
Date:
Subject: pgadmin very slow