Set GUC "is_superuser" in all processes that set AuthenticatedUserId.
authorNoah Misch <noah@leadboat.com>
Mon, 6 Nov 2023 14:14:13 +0000 (06:14 -0800)
committerNoah Misch <noah@leadboat.com>
Mon, 6 Nov 2023 14:14:18 +0000 (06:14 -0800)
commita27be40c1bc328f4bab324ccecd601909ec94ac9
treee62f0b2fce77f3fe4bd3e38f068c388bca413b60
parente082734c8e78e6622a0422e612a870278721e83f
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