Re: on connect/on disconnect

From: Jorge Godoy <jgodoy(at)gmail(dot)com>
To: Robert Edwards <bob(at)cs(dot)anu(dot)edu(dot)au>
Cc: Aaron Bono <postgresql(at)aranya(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: on connect/on disconnect
Date: 2006-09-11 12:09:52
Message-ID: 87fyeyzjsf.fsf@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Robert Edwards <bob(at)cs(dot)anu(dot)edu(dot)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(at)gmail(dot)com>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Aaron Bono 2006-09-11 14:46:45 Re: hi i am gettin error when i am deleting a function from my pgadmin
Previous Message James Cloos 2006-09-11 12:04:59 Re: where clause subqueries vs multiple rows results