pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jorge Godoy <jgodoy@gmail.com>
To: Robert Edwards <bob@cs.anu.edu.au>
Cc: Aaron Bono <postgresql@aranya.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: on connect/on disconnect
Date: Mon, 11 Sep 2006 09:09:52 -0300
Message-ID: <87fyeyzjsf.fsf@gmail.com> (raw)
In-Reply-To: <4504EB87.3090502@cs.anu.edu.au>
References: <4504B474.9010801@cs.anu.edu.au>
	<bf05e51c0609102128u7a6d98e3g9faf634a71736bd@mail.gmail.com>
	<4504EB87.3090502@cs.anu.edu.au>

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>



view thread (9+ messages)  latest in thread

Message-ID: <87fyeyzjsf.fsf@gmail.com>
Permalink:  ../87fyeyzjsf.fsf@gmail.com/
Also on:    postgresql.org/message-id/87fyeyzjsf.fsf@gmail.com

 · 

reply

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: jgodoy@gmail.com, bob@cs.anu.edu.au, postgresql@aranya.com
  Subject: Re: on connect/on disconnect
  In-Reply-To: <87fyeyzjsf.fsf@gmail.com>

* 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