Re: SET ROLE versus SET SESSION AUTHORIZATION - Mailing list pgsql-docs

From Laurenz Albe
Subject Re: SET ROLE versus SET SESSION AUTHORIZATION
Date
Msg-id 75a5f0f99356c263fedd8a02d3072e04d4073f84.camel@cybertec.at
Whole thread Raw
In response to SET ROLE versus SET SESSION AUTHORIZATION  (PG Doc comments form <noreply@postgresql.org>)
List pgsql-docs
On Tue, 2024-01-30 at 17:25 +0000, PG Doc comments form wrote:
> Page: https://www.postgresql.org/docs/16/sql-set-role.html
> Description:
>
> "SET ROLE has effects comparable to SET SESSION AUTHORIZATION, but the
> privilege checks involved are quite different."
>
> What are the differences in privilege checks?
>
> How are the two commands the same and different, semantically?

The difference is revealed by "SELECT session_user".

I think that is pretty clearly described in the SET SESSION AUTHORIZATION
documentation page.

Yours,
Laurenz Albe



pgsql-docs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: create table explicitly mention that unique|primary key constraint will create an
Next
From: Peter Eisentraut
Date:
Subject: Re: create table explicitly mention that unique|primary key constraint will create an