Re: SET SESSION AUTHORIZATION (was Re: [HACKERS] Real/effective user)

2001-04-23 Thread Karel Zak
On Sat, Apr 21, 2001 at 05:43:02PM +0200, Peter Eisentraut wrote: > I have implemented this; it seems to do what we need: > > $ ~/pg-install/bin/psql -U peter > > peter=# set session authorization 'joeblow'; > SET VARIABLE > peter=# create table foo (a int); > CREATE > peter=# \dt > List of

Re: [HACKERS] Real/effective user

2001-04-18 Thread Peter Eisentraut
Tom Lane writes: > 1. "real user" = what you originally authenticated to the postmaster. > > 2. "session user" = what you can SET if your real identity is a superuser. > > 3. "current user" = effective userid for permission checks. We could have a Boolean variable "authenticated user is superuse

Re: [HACKERS] Real/effective user

2001-04-17 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Terminology note: In SQL 'real user' == SESSION_USER, 'effective user' == > CURRENT_USER. Not sure about that. I suspect that we actually need three values: 1. "real user" = what you originally authenticated to the postmaster. 2. "session user" =