Re: sudo-like behavior - Mailing list pgsql-general

From Tom Lane
Subject Re: sudo-like behavior
Date
Msg-id 29489.1145564467@sss.pgh.pa.us
Whole thread Raw
In response to sudo-like behavior  ("A.M." <agentm@themactionfaction.com>)
Responses Re: sudo-like behavior
List pgsql-general
"A.M." <agentm@themactionfaction.com> writes:
> It seems I am stuck so please allow me to propose an extension:
> SET SESSION AUTHORIZATION user [WITH PASSWORD 'password];

This idea is extremely unlikely to be accepted, as the password would be
at risk of exposure in places like the pg_stat_activity view.

I think the correct way to do what you want is via a SECURITY DEFINER
function.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: odbc problem
Next
From: Karsten Hilbert
Date:
Subject: Re: sudo-like behavior