Re: on connect/on disconnect - Mailing list pgsql-sql

From Jorge Godoy
Subject Re: on connect/on disconnect
Date
Msg-id 87fyeyzjsf.fsf@gmail.com
Whole thread Raw
In response to Re: on connect/on disconnect  (Robert Edwards <bob@cs.anu.edu.au>)
List pgsql-sql
Robert Edwards <bob@cs.anu.edu.au> writes:

> Or is it possible, over the same connection, to change the database
> user? My understanding of the frontend/backend protocol is that this
> is not allowed.

It is possible to change users.  

SET SESSION AUTHORIZATION <username>;

http://www.postgresql.org/docs/8.1/interactive/sql-set-session-authorization.html


Also just for completeness: http://www.securityfocus.com/bid/16650/info


-- 
Jorge Godoy      <jgodoy@gmail.com>


pgsql-sql by date:

Previous
From: Markus Schaber
Date:
Subject: Re: on connect/on disconnect
Next
From: James Cloos
Date:
Subject: Re: where clause subqueries vs multiple rows results