diff options
author | Daniel Gustafsson <dgustafsson@postgresql.org> | 2021-11-26 14:02:01 +0100 |
---|---|---|
committer | Daniel Gustafsson <dgustafsson@postgresql.org> | 2021-11-26 14:02:01 +0100 |
commit | b2a459edfe645747744402f23de041e9c0a3cd93 (patch) | |
tree | 9dc7046907d64ed2e3c896bbf668a40c443544e3 /src/backend/access/gist/gistproc.c | |
parent | 36cb5e7c512bef394c9288786c62ef0eb1e891ba (diff) | |
download | postgresql-b2a459edfe645747744402f23de041e9c0a3cd93.tar.gz postgresql-b2a459edfe645747744402f23de041e9c0a3cd93.zip |
Fix GRANTED BY support in REVOKE ROLE statements
Commit 6aaaa76bb added support for the GRANTED BY clause in GRANT and
REVOKE statements, but missed adding support for checking the role in
the REVOKE ROLE case. Fix by checking that the parsed role matches the
CURRENT_ROLE/CURRENT_USER requirement, and also add some tests for it.
Backpatch to v14 where GRANTED BY support was introduced.
Discussion: https://postgr.es/m/B7F6699A-A984-4943-B9BF-CEB84C003527@yesql.se
Backpatch-through: 14
Diffstat (limited to 'src/backend/access/gist/gistproc.c')
0 files changed, 0 insertions, 0 deletions