Re: Making "SECURITY DEFINER" procedures.. - SOLVED

From: Sergey Holod <sss(at)radiocom(dot)net(dot)ua>
To: pgsql-sql(at)postgresql(dot)org
Cc: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Subject: Re: Making "SECURITY DEFINER" procedures.. - SOLVED
Date: 2003-04-29 23:56:02
Message-ID: 200304300256.02294.sss@radiocom.net.ua
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message David Durst 2003-04-30 01:00:29 unsubscribe
Previous Message Sergey Holod 2003-04-29 23:18:08 Re: Making "SECURITY DEFINER" procedures..