aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/misc/guc_tables.c
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2023-07-12 21:28:54 -0700
committerNathan Bossart <nathan@postgresql.org>2023-07-12 21:28:54 -0700
commit0fef8775382886bef023aee67cb744711ed7a32f (patch)
treefd5a4e8187b064bd75e18e9727e7fcd476e71e53 /src/backend/utils/misc/guc_tables.c
parent411b720343005597d042fc1736ce9a3a3ee8a1fe (diff)
downloadpostgresql-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/utils/misc/guc_tables.c')
-rw-r--r--src/backend/utils/misc/guc_tables.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/backend/utils/misc/guc_tables.c b/src/backend/utils/misc/guc_tables.c
index c14456060c0..93dc2e76809 100644
--- a/src/backend/utils/misc/guc_tables.c
+++ b/src/backend/utils/misc/guc_tables.c
@@ -511,7 +511,7 @@ bool check_function_bodies = true;
* details.
*/
bool default_with_oids = false;
-bool session_auth_is_superuser;
+bool current_role_is_superuser;
int log_min_error_statement = ERROR;
int log_min_messages = WARNING;
@@ -1037,13 +1037,16 @@ struct config_bool ConfigureNamesBool[] =
NULL, NULL, NULL
},
{
- /* Not for general use --- used by SET SESSION AUTHORIZATION */
+ /*
+ * Not for general use --- used by SET SESSION AUTHORIZATION and SET
+ * ROLE
+ */
{"is_superuser", PGC_INTERNAL, UNGROUPED,
gettext_noop("Shows whether the current user is a superuser."),
NULL,
GUC_REPORT | GUC_NO_SHOW_ALL | GUC_NO_RESET_ALL | GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE
},
- &session_auth_is_superuser,
+ &current_role_is_superuser,
false,
NULL, NULL, NULL
},