pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <mail@joeconway.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Clarify documentation of RESET ROLE
Date: Fri, 02 Apr 2021 17:51:49 +0000
Message-ID: <E1lSNxV-00047z-EH@gemulon.postgresql.org> (raw)

Clarify documentation of RESET ROLE

Command-line options, or previous "ALTER (ROLE|DATABASE) ...
SET ROLE ..." commands, can change the value of the default role
for a session. In the presence of one of these, RESET ROLE will
change the current user identifier to the default role rather
than the session user identifier. Fix the documentation to
reflect this reality. Backpatch to all supported versions.

Author: Nathan Bossart
Reviewed-By: Laurenz Albe, David G. Johnston, Joe Conway
Reported by: Nathan Bossart
Discussion: https://postgr.es/m/flat/925134DB-8212-4F60-8AB1-B1231D750CB4%40amazon.com
Backpatch-through: 9.6

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5ef79d4062b81c69204c58eacfc81bd38641235a

Modified Files
--------------
doc/src/sgml/ref/set_role.sgml | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1lSNxV-00047z-EH@gemulon.postgresql.org>
Permalink:  ../E1lSNxV-00047z-EH@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lSNxV-00047z-EH@gemulon.postgresql.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: mail@joeconway.com
  Subject: Re: pgsql: Clarify documentation of RESET ROLE
  In-Reply-To: <E1lSNxV-00047z-EH@gemulon.postgresql.org>
  References: <E1lSNxV-00047z-EH@gemulon.postgresql.org>

* 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