diff options
Diffstat (limited to 'src/include/miscadmin.h')
| -rw-r--r-- | src/include/miscadmin.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h index 5ff0856765..f54522308c 100644 --- a/src/include/miscadmin.h +++ b/src/include/miscadmin.h @@ -10,6 +10,11 @@ * Over time, this has also become the preferred place for widely known * resource-limitation stuff, such as work_mem and check_stack_depth(). * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * Portions Copyright (c) 2012-2014, TransLattice, Inc. * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * @@ -300,6 +305,10 @@ extern void SetUserIdAndContext(Oid userid, bool sec_def_context); extern void InitializeSessionUserId(const char *rolename); extern void InitializeSessionUserIdStandalone(void); extern void SetSessionAuthorization(Oid userid, bool is_superuser); +#ifdef XCP +extern void SetGlobalSession(Oid coordid, int coordpid); +extern char *GetClusterUserName(void); +#endif extern Oid GetCurrentRoleId(void); extern void SetCurrentRoleId(Oid roleid, bool is_superuser); @@ -345,7 +354,6 @@ typedef enum ProcessingMode extern ProcessingMode Mode; - #define IsBootstrapProcessingMode() ((bool)(Mode == BootstrapProcessing)) #define IsInitProcessingMode() ((bool)(Mode == InitProcessing)) #define IsNormalProcessingMode() ((bool)(Mode == NormalProcessing)) |
