Running a query as a specific, different user

From: Mark Lubratt <mark(dot)lubratt(at)indeq(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Running a query as a specific, different user
Date: 2006-11-19 16:10:15
Message-ID: 3FF635CE-E99F-4E53-B750-C6A6A8F937EC@indeq.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello all!

I'm working on a report (using jasperreports) for an application I've
written accessing PG 8.1.4. The view I'm doing the report on needs
to run as a the specific user requesting the report; however, the
report is connecting to the database using a general username for the
report itself.

Is there a way within the SQL of the request to get a query to
execute as a specific user? In effect changing the user in the
middle of a connection?

Thanks!
Mark

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Peterson 2006-11-19 16:34:19 Re: composite type insert
Previous Message Tom Lane 2006-11-19 07:09:11 Re: composite type insert