File tree 3 files changed +8
-5
lines changed
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ InitializeParallelDSM(ParallelContext *pcxt)
327
327
fps -> database_id = MyDatabaseId ;
328
328
fps -> authenticated_user_id = GetAuthenticatedUserId ();
329
329
fps -> outer_user_id = GetCurrentRoleId ();
330
- fps -> is_superuser = session_auth_is_superuser ;
330
+ fps -> is_superuser = current_role_is_superuser ;
331
331
GetUserIdAndSecContext (& fps -> current_user_id , & fps -> sec_context );
332
332
GetTempNamespaceState (& fps -> temp_namespace_id ,
333
333
& fps -> temp_toast_namespace_id );
Original file line number Diff line number Diff line change @@ -511,7 +511,7 @@ bool check_function_bodies = true;
511
511
* details.
512
512
*/
513
513
bool default_with_oids = false;
514
- bool session_auth_is_superuser ;
514
+ bool current_role_is_superuser ;
515
515
516
516
int log_min_error_statement = ERROR ;
517
517
int log_min_messages = WARNING ;
@@ -1037,13 +1037,16 @@ struct config_bool ConfigureNamesBool[] =
1037
1037
NULL , NULL , NULL
1038
1038
},
1039
1039
{
1040
- /* Not for general use --- used by SET SESSION AUTHORIZATION */
1040
+ /*
1041
+ * Not for general use --- used by SET SESSION AUTHORIZATION and SET
1042
+ * ROLE
1043
+ */
1041
1044
{"is_superuser" , PGC_INTERNAL , UNGROUPED ,
1042
1045
gettext_noop ("Shows whether the current user is a superuser." ),
1043
1046
NULL ,
1044
1047
GUC_REPORT | GUC_NO_SHOW_ALL | GUC_NO_RESET_ALL | GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE
1045
1048
},
1046
- & session_auth_is_superuser ,
1049
+ & current_role_is_superuser ,
1047
1050
false,
1048
1051
NULL , NULL , NULL
1049
1052
},
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ extern PGDLLIMPORT bool log_statement_stats;
250
250
extern PGDLLIMPORT bool log_btree_build_stats ;
251
251
252
252
extern PGDLLIMPORT bool check_function_bodies ;
253
- extern PGDLLIMPORT bool session_auth_is_superuser ;
253
+ extern PGDLLIMPORT bool current_role_is_superuser ;
254
254
255
255
extern PGDLLIMPORT bool log_duration ;
256
256
extern PGDLLIMPORT int log_parameter_max_length ;
You can’t perform that action at this time.
0 commit comments