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)
commitecd5d240c5965b5127e1c2fdf93c9fc61f2d1acd
tree1e48a8041ab06a4bd66c99d4c8748062226c952f
parent508acb901e31cf10fcac0ff9304d3d2d33bb2b2f
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