Re: Switching roles as an replacement of connection pooling tools - Mailing list pgsql-general

From David G. Johnston
Subject Re: Switching roles as an replacement of connection pooling tools
Date
Msg-id CAKFQuwaJpOTvpmw6zFE7o26_=o90YQ6bOn-nGBw2=acq1QY2cg@mail.gmail.com
Whole thread Raw
In response to Re: Switching roles as an replacement of connection pooling tools  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Switching roles as an replacement of connection pooling tools  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Tue, May 31, 2016 at 10:20 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
CN <cnliou9@fastmail.fm> writes:
> If command "SET SESSION AUTHORIZATION" is enhanced to accept two
> additional arguments
> PASSWORD <password>
> , then a client simply establishes only one connection to server and do
> jobs for a million roles.

* Any session-level settings specified for the new role with ALTER
USER SET don't get adopted.
While you could imagine that specific applications might be okay with
these things, they're pretty fatal for a general-purpose connection
pooler; the first two in particular would be unacceptable security
holes.

Is there a reason something "SET ROLE ... WITH SETTINGS" couldn't be implemented?

David J.​

pgsql-general by date:

Previous
From: Andreas Joseph Krogh
Date:
Subject: Re: Slides for PGCon2016; "FTS is dead ? Long live FTS !"
Next
From: Achilleas Mantzios
Date:
Subject: Re: Switching roles as an replacement of connection pooling tools