]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Clarify documentation of RESET ROLE
authorJoe Conway <mail@joeconway.com>
Fri, 2 Apr 2021 17:48:45 +0000 (13:48 -0400)
committerJoe Conway <mail@joeconway.com>
Fri, 2 Apr 2021 17:48:45 +0000 (13:48 -0400)
commit4a1b95fcf4710c9578750d1d9ab4672eab3a5a82
tree078f554264ae937c5da98ee7ffaa510698ecc06e
parent104164361cb18d7c36d068e1ddd2453b0e4dc1bb
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
doc/src/sgml/ref/set_role.sgml