Set GUC "is_superuser" in all processes that set AuthenticatedUserId.
authorNoah Misch <[email protected]>
Mon, 6 Nov 2023 14:14:13 +0000 (06:14 -0800)
committerNoah Misch <[email protected]>
Mon, 6 Nov 2023 14:14:16 +0000 (06:14 -0800)
commitfbc3719094150f5718cc55a80b3c98edf4188ef9
treea1b45bbff2e3f83908a73b854cf15b602269fb4b
parent595c988c90024acdc56479d0a631a232a9d19e36
Set GUC "is_superuser" in all processes that set AuthenticatedUserId.

It was always false in single-user mode, in autovacuum workers, and in
background workers.  This had no specifically-identified security
consequences, but non-core code or future work might make it
security-relevant.  Back-patch to v11 (all supported versions).

Jelte Fennema-Nio.  Reported by Jelte Fennema-Nio.
src/backend/utils/init/miscinit.c