diff options
author | Nathan Bossart <nathan@postgresql.org> | 2023-07-12 21:28:54 -0700 |
---|---|---|
committer | Nathan Bossart <nathan@postgresql.org> | 2023-07-12 21:28:54 -0700 |
commit | 0fef8775382886bef023aee67cb744711ed7a32f (patch) | |
tree | fd5a4e8187b064bd75e18e9727e7fcd476e71e53 /src/backend/access/transam/parallel.c | |
parent | 411b720343005597d042fc1736ce9a3a3ee8a1fe (diff) | |
download | postgresql-0fef8775382886bef023aee67cb744711ed7a32f.tar.gz postgresql-0fef8775382886bef023aee67cb744711ed7a32f.zip |
Rename session_auth_is_superuser to current_role_is_superuser.
This variable might've been accurately named when it was added in
ea886339b8, but the name hasn't been accurate since at least the
introduction of SET ROLE in e5d6b91220. The corresponding
documentation was fixed in eedb068c0a. This commit renames the
variable accordingly.
Suggested-by: Joseph Koshakow
Discussion: https://postgr.es/m/CAAvxfHc-HHzONQ2oXdvhFF9ayRnidPwK%2BfVBhRzaBWYYLVQL-g%40mail.gmail.com
Diffstat (limited to 'src/backend/access/transam/parallel.c')
-rw-r--r-- | src/backend/access/transam/parallel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/parallel.c b/src/backend/access/transam/parallel.c index 2bd04bd1773..1738aecf1f0 100644 --- a/src/backend/access/transam/parallel.c +++ b/src/backend/access/transam/parallel.c @@ -327,7 +327,7 @@ InitializeParallelDSM(ParallelContext *pcxt) fps->database_id = MyDatabaseId; fps->authenticated_user_id = GetAuthenticatedUserId(); fps->outer_user_id = GetCurrentRoleId(); - fps->is_superuser = session_auth_is_superuser; + fps->is_superuser = current_role_is_superuser; GetUserIdAndSecContext(&fps->current_user_id, &fps->sec_context); GetTempNamespaceState(&fps->temp_namespace_id, &fps->temp_toast_namespace_id); |