pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Schaber <schabi@logix-tt.com>
To: pgsql-sql@postgresql.org
Subject: Re: on connect/on disconnect
Date: Mon, 11 Sep 2006 12:36:59 +0200
Message-ID: <45053C4B.5010208@logix-tt.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>

Hi, Robert,

Robert Edwards wrote:

> 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.

Not on protocol level, but one level higher.

  SET SESSION AUTHORIZATION <user>;

pg_dump uses this frequently. See the docs for more details.
http://www.postgresql.org/docs/8.1/interactive/sql-set-session-authorization.html

HTH,
Markus
-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org



view thread (9+ messages)  latest in thread

Message-ID: <45053C4B.5010208@logix-tt.com>
Permalink:  ../45053C4B.5010208@logix-tt.com/
Also on:    postgresql.org/message-id/45053C4B.5010208@logix-tt.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: schabi@logix-tt.com
  Subject: Re: on connect/on disconnect
  In-Reply-To: <45053C4B.5010208@logix-tt.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