From: Sergey Holod <sss@radiocom.net.ua>
To: pgsql-sql@postgresql.org
Cc: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Subject: Re: Making "SECURITY DEFINER" procedures.. - SOLVED
Date: Wed, 30 Apr 2003 02:56:02 +0300
Message-ID: <200304300256.02294.sss@radiocom.net.ua> (raw)
In-Reply-To: <200304300218.08129.sss@radiocom.net.ua>
References: <20030429150829.G54888-100000@megazone23.bigpanda.com>
<200304300218.08129.sss@radiocom.net.ua>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sss@radiocom.net.ua, sszabo@megazone23.bigpanda.com
Subject: Re: Making "SECURITY DEFINER" procedures.. - SOLVED
In-Reply-To: <200304300256.02294.sss@radiocom.net.ua>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox