aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlogreader.c
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2021-11-26 14:02:01 +0100
committerDaniel Gustafsson <dgustafsson@postgresql.org>2021-11-26 14:02:01 +0100
commit371087d006e04991080bf17cf2287db38d3ea92e (patch)
tree5ec0d4e2e13044711060e9aea52167484dcdcdc8 /src/backend/access/transam/xlogreader.c
parent1cc13b83eb125fb63eeb1249aa5b28d06fbd2b6c (diff)
downloadpostgresql-371087d006e04991080bf17cf2287db38d3ea92e.tar.gz
postgresql-371087d006e04991080bf17cf2287db38d3ea92e.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/transam/xlogreader.c')
0 files changed, 0 insertions, 0 deletions