pgsql: Clarify documentation of RESET ROLE

From: Joe Conway <mail(at)joeconway(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Clarify documentation of RESET ROLE
Date: 2021-04-02 17:51:52
Message-ID: E1lSNxY-00048O-6P@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9e67a9440736be87d4013ce2d23faa131523c07e

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

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2021-04-02 20:25:25 pgsql: Detect POLLHUP/POLLRDHUP while running queries.
Previous Message Joe Conway 2021-04-02 17:51:49 pgsql: Clarify documentation of RESET ROLE