diff options
Diffstat (limited to 'src/include/miscadmin.h')
-rw-r--r-- | src/include/miscadmin.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h index b94a94499b7..6e33a172122 100644 --- a/src/include/miscadmin.h +++ b/src/include/miscadmin.h @@ -148,6 +148,7 @@ extern int max_worker_processes; extern PGDLLIMPORT int MyProcPid; extern PGDLLIMPORT pg_time_t MyStartTime; extern PGDLLIMPORT struct Port *MyProcPort; +extern PGDLLIMPORT struct Latch *MyLatch; extern long MyCancelKey; extern int MyPMChildSlot; @@ -302,6 +303,9 @@ extern void SetCurrentRoleId(Oid roleid, bool is_superuser); extern void SetDataDir(const char *dir); extern void ChangeToDataDir(void); +extern void SwitchToSharedLatch(void); +extern void SwitchBackToLocalLatch(void); + /* in utils/misc/superuser.c */ extern bool superuser(void); /* current user is superuser */ extern bool superuser_arg(Oid roleid); /* given user is superuser */ |