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:17 +0000 (06:14 -0800)
commit2c7a2a00a0867754d9e6e103057406ce953964cc
treeca78968c967ceaf9f4b996721d1db99c64e7b9fa
parent28b609550af0f8e6e09e5af0d090eda331992ef5
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