Re: Making "SECURITY DEFINER" procedures.. - SOLVED
| От | Sergey Holod |
|---|---|
| Тема | Re: Making "SECURITY DEFINER" procedures.. - SOLVED |
| Дата | |
| Msg-id | 200304300256.02294.sss@radiocom.net.ua обсуждение |
| Ответ на | Re: Making "SECURITY DEFINER" procedures.. (Sergey Holod <sss@radiocom.net.ua>) |
| Ответы |
Re: Making "SECURITY DEFINER" procedures.. - SOLVED
|
| Список | pgsql-sql |
On Wednesday 30 April 2003 02:18, you wrote:
SH> $psql -U rcbilling billing
SH> billing=> select new_session('sergey','password');
SH> NOTICE: current user is data
SH> NOTICE: after delete
SH> NOTICE: after select - 8
SH> NOTICE: after insert - KMp7ciFzJAL10Xxqft9O
SH> NOTICE: before return - KMp7ciFzJAL10Xxqft9O
SH> ERROR: data: permission denied
GRANT USAGE ON schema data TO rcbilling;
solved problem:
$ psql -U rcbilling billing
billing=> select new_session('sergey','gfhjkm');
NOTICE: current user is data
NOTICE: after delete
NOTICE: after select - 8
NOTICE: after insert - H51udQO0sxt68fA3BLMY
NOTICE: before return - H51udQO0sxt68fA3BLMY new_session
----------------------H51udQO0sxt68fA3BLMY
(1 row)
Don't fully undestand why I need that, but It works..
MANY THANKS for help..
--
With Best Regards,
Sergey Holod
В списке pgsql-sql по дате отправления: