PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
miscadmin.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * miscadmin.h
4  * This file contains general postgres administration and initialization
5  * stuff that used to be spread out between the following files:
6  * globals.h global variables
7  * pdir.h directory path crud
8  * pinit.h postgres initialization
9  * pmod.h processing modes
10  * Over time, this has also become the preferred place for widely known
11  * resource-limitation stuff, such as work_mem and check_stack_depth().
12  *
13  * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
14  * Portions Copyright (c) 1994, Regents of the University of California
15  *
16  * src/include/miscadmin.h
17  *
18  * NOTES
19  * some of the information in this file should be moved to other files.
20  *
21  *-------------------------------------------------------------------------
22  */
23 #ifndef MISCADMIN_H
24 #define MISCADMIN_H
25 
26 #include <signal.h>
27 
28 #include "pgtime.h" /* for pg_time_t */
29 
30 
31 #define InvalidPid (-1)
32 
33 
34 /*****************************************************************************
35  * System interrupt and critical section handling
36  *
37  * There are two types of interrupts that a running backend needs to accept
38  * without messing up its state: QueryCancel (SIGINT) and ProcDie (SIGTERM).
39  * In both cases, we need to be able to clean up the current transaction
40  * gracefully, so we can't respond to the interrupt instantaneously ---
41  * there's no guarantee that internal data structures would be self-consistent
42  * if the code is interrupted at an arbitrary instant. Instead, the signal
43  * handlers set flags that are checked periodically during execution.
44  *
45  * The CHECK_FOR_INTERRUPTS() macro is called at strategically located spots
46  * where it is normally safe to accept a cancel or die interrupt. In some
47  * cases, we invoke CHECK_FOR_INTERRUPTS() inside low-level subroutines that
48  * might sometimes be called in contexts that do *not* want to allow a cancel
49  * or die interrupt. The HOLD_INTERRUPTS() and RESUME_INTERRUPTS() macros
50  * allow code to ensure that no cancel or die interrupt will be accepted,
51  * even if CHECK_FOR_INTERRUPTS() gets called in a subroutine. The interrupt
52  * will be held off until CHECK_FOR_INTERRUPTS() is done outside any
53  * HOLD_INTERRUPTS() ... RESUME_INTERRUPTS() section.
54  *
55  * There is also a mechanism to prevent query cancel interrupts, while still
56  * allowing die interrupts: HOLD_CANCEL_INTERRUPTS() and
57  * RESUME_CANCEL_INTERRUPTS().
58  *
59  * Special mechanisms are used to let an interrupt be accepted when we are
60  * waiting for a lock or when we are waiting for command input (but, of
61  * course, only if the interrupt holdoff counter is zero). See the
62  * related code for details.
63  *
64  * A lost connection is handled similarly, although the loss of connection
65  * does not raise a signal, but is detected when we fail to write to the
66  * socket. If there was a signal for a broken connection, we could make use of
67  * it by setting ClientConnectionLost in the signal handler.
68  *
69  * A related, but conceptually distinct, mechanism is the "critical section"
70  * mechanism. A critical section not only holds off cancel/die interrupts,
71  * but causes any ereport(ERROR) or ereport(FATAL) to become ereport(PANIC)
72  * --- that is, a system-wide reset is forced. Needless to say, only really
73  * *critical* code should be marked as a critical section! Currently, this
74  * mechanism is only used for XLOG-related code.
75  *
76  *****************************************************************************/
77 
78 /* in globals.c */
79 /* these are marked volatile because they are set by signal handlers: */
80 extern PGDLLIMPORT volatile bool InterruptPending;
81 extern PGDLLIMPORT volatile bool QueryCancelPending;
82 extern PGDLLIMPORT volatile bool ProcDiePending;
84 extern PGDLLIMPORT volatile sig_atomic_t ConfigReloadPending;
85 
86 extern volatile bool ClientConnectionLost;
87 
88 /* these are marked volatile because they are examined by signal handlers: */
91 extern PGDLLIMPORT volatile uint32 CritSectionCount;
92 
93 /* in tcop/postgres.c */
94 extern void ProcessInterrupts(void);
95 
96 #ifndef WIN32
97 
98 #define CHECK_FOR_INTERRUPTS() \
99 do { \
100  if (InterruptPending) \
101  ProcessInterrupts(); \
102 } while(0)
103 #else /* WIN32 */
104 
105 #define CHECK_FOR_INTERRUPTS() \
106 do { \
107  if (UNBLOCKED_SIGNAL_QUEUE()) \
108  pgwin32_dispatch_queued_signals(); \
109  if (InterruptPending) \
110  ProcessInterrupts(); \
111 } while(0)
112 #endif /* WIN32 */
113 
114 
115 #define HOLD_INTERRUPTS() (InterruptHoldoffCount++)
116 
117 #define RESUME_INTERRUPTS() \
118 do { \
119  Assert(InterruptHoldoffCount > 0); \
120  InterruptHoldoffCount--; \
121 } while(0)
122 
123 #define HOLD_CANCEL_INTERRUPTS() (QueryCancelHoldoffCount++)
124 
125 #define RESUME_CANCEL_INTERRUPTS() \
126 do { \
127  Assert(QueryCancelHoldoffCount > 0); \
128  QueryCancelHoldoffCount--; \
129 } while(0)
130 
131 #define START_CRIT_SECTION() (CritSectionCount++)
132 
133 #define END_CRIT_SECTION() \
134 do { \
135  Assert(CritSectionCount > 0); \
136  CritSectionCount--; \
137 } while(0)
138 
139 
140 /*****************************************************************************
141  * globals.h -- *
142  *****************************************************************************/
143 
144 /*
145  * from utils/init/globals.c
146  */
147 extern PGDLLIMPORT pid_t PostmasterPid;
149 extern PGDLLIMPORT bool IsUnderPostmaster;
150 extern PGDLLIMPORT bool IsBackgroundWorker;
151 extern PGDLLIMPORT bool IsBinaryUpgrade;
152 
153 extern bool ExitOnAnyError;
154 
155 extern PGDLLIMPORT char *DataDir;
156 
157 extern PGDLLIMPORT int NBuffers;
158 extern int MaxBackends;
159 extern int MaxConnections;
160 extern int max_worker_processes;
161 extern int max_parallel_workers;
162 
163 extern PGDLLIMPORT int MyProcPid;
165 extern PGDLLIMPORT struct Port *MyProcPort;
166 extern PGDLLIMPORT struct Latch *MyLatch;
167 extern int32 MyCancelKey;
168 extern int MyPMChildSlot;
169 
170 extern char OutputFileName[];
171 extern PGDLLIMPORT char my_exec_path[];
172 extern char pkglib_path[];
173 
174 #ifdef EXEC_BACKEND
175 extern char postgres_exec_path[];
176 #endif
177 
178 /*
179  * done in storage/backendid.h for now.
180  *
181  * extern BackendId MyBackendId;
182  */
184 
186 
187 /*
188  * Date/Time Configuration
189  *
190  * DateStyle defines the output formatting choice for date/time types:
191  * USE_POSTGRES_DATES specifies traditional Postgres format
192  * USE_ISO_DATES specifies ISO-compliant format
193  * USE_SQL_DATES specifies Oracle/Ingres-compliant format
194  * USE_GERMAN_DATES specifies German-style dd.mm/yyyy
195  *
196  * DateOrder defines the field order to be assumed when reading an
197  * ambiguous date (anything not in YYYY-MM-DD format, with a four-digit
198  * year field first, is taken to be ambiguous):
199  * DATEORDER_YMD specifies field order yy-mm-dd
200  * DATEORDER_DMY specifies field order dd-mm-yy ("European" convention)
201  * DATEORDER_MDY specifies field order mm-dd-yy ("US" convention)
202  *
203  * In the Postgres and SQL DateStyles, DateOrder also selects output field
204  * order: day comes before month in DMY style, else month comes before day.
205  *
206  * The user-visible "DateStyle" run-time parameter subsumes both of these.
207  */
208 
209 /* valid DateStyle values */
210 #define USE_POSTGRES_DATES 0
211 #define USE_ISO_DATES 1
212 #define USE_SQL_DATES 2
213 #define USE_GERMAN_DATES 3
214 #define USE_XSD_DATES 4
215 
216 /* valid DateOrder values */
217 #define DATEORDER_YMD 0
218 #define DATEORDER_DMY 1
219 #define DATEORDER_MDY 2
220 
221 extern PGDLLIMPORT int DateStyle;
222 extern PGDLLIMPORT int DateOrder;
223 
224 /*
225  * IntervalStyles
226  * INTSTYLE_POSTGRES Like Postgres < 8.4 when DateStyle = 'iso'
227  * INTSTYLE_POSTGRES_VERBOSE Like Postgres < 8.4 when DateStyle != 'iso'
228  * INTSTYLE_SQL_STANDARD SQL standard interval literals
229  * INTSTYLE_ISO_8601 ISO-8601-basic formatted intervals
230  */
231 #define INTSTYLE_POSTGRES 0
232 #define INTSTYLE_POSTGRES_VERBOSE 1
233 #define INTSTYLE_SQL_STANDARD 2
234 #define INTSTYLE_ISO_8601 3
235 
236 extern PGDLLIMPORT int IntervalStyle;
237 
238 #define MAXTZLEN 10 /* max TZ name len, not counting tr. null */
239 
240 extern bool enableFsync;
241 extern bool allowSystemTableMods;
242 extern PGDLLIMPORT int work_mem;
244 
245 extern int VacuumCostPageHit;
246 extern int VacuumCostPageMiss;
247 extern int VacuumCostPageDirty;
248 extern int VacuumCostLimit;
249 extern int VacuumCostDelay;
250 
251 extern int VacuumPageHit;
252 extern int VacuumPageMiss;
253 extern int VacuumPageDirty;
254 
255 extern int VacuumCostBalance;
256 extern bool VacuumCostActive;
257 
258 
259 /* in tcop/postgres.c */
260 
261 #if defined(__ia64__) || defined(__ia64)
262 typedef struct
263 {
264  char *stack_base_ptr;
265  char *register_stack_base_ptr;
267 #else
268 typedef char *pg_stack_base_t;
269 #endif
270 
271 extern pg_stack_base_t set_stack_base(void);
272 extern void restore_stack_base(pg_stack_base_t base);
273 extern void check_stack_depth(void);
274 extern bool stack_is_too_deep(void);
275 
277 
278 /* in tcop/utility.c */
279 extern void PreventCommandIfReadOnly(const char *cmdname);
280 extern void PreventCommandIfParallelMode(const char *cmdname);
281 extern void PreventCommandDuringRecovery(const char *cmdname);
282 
283 /* in utils/misc/guc.c */
284 extern int trace_recovery_messages;
285 extern int trace_recovery(int trace_level);
286 
287 /*****************************************************************************
288  * pdir.h -- *
289  * POSTGRES directory path definitions. *
290  *****************************************************************************/
291 
292 /* flags to be OR'd to form sec_context */
293 #define SECURITY_LOCAL_USERID_CHANGE 0x0001
294 #define SECURITY_RESTRICTED_OPERATION 0x0002
295 #define SECURITY_NOFORCE_RLS 0x0004
296 
297 extern char *DatabasePath;
298 
299 /* now in utils/init/miscinit.c */
300 extern void InitPostmasterChild(void);
301 extern void InitStandaloneProcess(const char *argv0);
302 
303 extern void SetDatabasePath(const char *path);
304 
305 extern char *GetUserNameFromId(Oid roleid, bool noerr);
306 extern Oid GetUserId(void);
307 extern Oid GetOuterUserId(void);
308 extern Oid GetSessionUserId(void);
309 extern Oid GetAuthenticatedUserId(void);
310 extern void GetUserIdAndSecContext(Oid *userid, int *sec_context);
311 extern void SetUserIdAndSecContext(Oid userid, int sec_context);
312 extern bool InLocalUserIdChange(void);
313 extern bool InSecurityRestrictedOperation(void);
314 extern bool InNoForceRLSOperation(void);
315 extern void GetUserIdAndContext(Oid *userid, bool *sec_def_context);
316 extern void SetUserIdAndContext(Oid userid, bool sec_def_context);
317 extern void InitializeSessionUserId(const char *rolename, Oid useroid);
318 extern void InitializeSessionUserIdStandalone(void);
319 extern void SetSessionAuthorization(Oid userid, bool is_superuser);
320 extern Oid GetCurrentRoleId(void);
321 extern void SetCurrentRoleId(Oid roleid, bool is_superuser);
322 
323 extern void SetDataDir(const char *dir);
324 extern void ChangeToDataDir(void);
325 
326 extern void SwitchToSharedLatch(void);
327 extern void SwitchBackToLocalLatch(void);
328 
329 /* in utils/misc/superuser.c */
330 extern bool superuser(void); /* current user is superuser */
331 extern bool superuser_arg(Oid roleid); /* given user is superuser */
332 
333 
334 /*****************************************************************************
335  * pmod.h -- *
336  * POSTGRES processing mode definitions. *
337  *****************************************************************************/
338 
339 /*
340  * Description:
341  * There are three processing modes in POSTGRES. They are
342  * BootstrapProcessing or "bootstrap," InitProcessing or
343  * "initialization," and NormalProcessing or "normal."
344  *
345  * The first two processing modes are used during special times. When the
346  * system state indicates bootstrap processing, transactions are all given
347  * transaction id "one" and are consequently guaranteed to commit. This mode
348  * is used during the initial generation of template databases.
349  *
350  * Initialization mode: used while starting a backend, until all normal
351  * initialization is complete. Some code behaves differently when executed
352  * in this mode to enable system bootstrapping.
353  *
354  * If a POSTGRES backend process is in normal mode, then all code may be
355  * executed normally.
356  */
357 
358 typedef enum ProcessingMode
359 {
360  BootstrapProcessing, /* bootstrap creation of template database */
361  InitProcessing, /* initializing system */
362  NormalProcessing /* normal processing */
364 
365 extern ProcessingMode Mode;
366 
367 #define IsBootstrapProcessingMode() (Mode == BootstrapProcessing)
368 #define IsInitProcessingMode() (Mode == InitProcessing)
369 #define IsNormalProcessingMode() (Mode == NormalProcessing)
370 
371 #define GetProcessingMode() Mode
372 
373 #define SetProcessingMode(mode) \
374  do { \
375  AssertArg((mode) == BootstrapProcessing || \
376  (mode) == InitProcessing || \
377  (mode) == NormalProcessing); \
378  Mode = (mode); \
379  } while(0)
380 
381 
382 /*
383  * Auxiliary-process type identifiers. These used to be in bootstrap.h
384  * but it seems saner to have them here, with the ProcessingMode stuff.
385  * The MyAuxProcType global is defined and set in bootstrap.c.
386  */
387 
388 typedef enum
389 {
398 
399  NUM_AUXPROCTYPES /* Must be last! */
400 } AuxProcType;
401 
403 
404 #define AmBootstrapProcess() (MyAuxProcType == BootstrapProcess)
405 #define AmStartupProcess() (MyAuxProcType == StartupProcess)
406 #define AmBackgroundWriterProcess() (MyAuxProcType == BgWriterProcess)
407 #define AmCheckpointerProcess() (MyAuxProcType == CheckpointerProcess)
408 #define AmWalWriterProcess() (MyAuxProcType == WalWriterProcess)
409 #define AmWalReceiverProcess() (MyAuxProcType == WalReceiverProcess)
410 
411 
412 /*****************************************************************************
413  * pinit.h -- *
414  * POSTGRES initialization and cleanup definitions. *
415  *****************************************************************************/
416 
417 /* in utils/init/postinit.c */
418 extern void pg_split_opts(char **argv, int *argcp, const char *optstr);
419 extern void InitializeMaxBackends(void);
420 extern void InitPostgres(const char *in_dbname, Oid dboid, const char *username,
421  Oid useroid, char *out_dbname);
422 extern void BaseInit(void);
423 
424 /* in utils/init/miscinit.c */
425 extern bool IgnoreSystemIndexes;
429 extern char *local_preload_libraries_string;
430 
431 extern void CreateDataDirLockFile(bool amPostmaster);
432 extern void CreateSocketLockFile(const char *socketfile, bool amPostmaster,
433  const char *socketDir);
434 extern void TouchSocketLockFiles(void);
435 extern void AddToDataDirLockFile(int target_line, const char *str);
436 extern bool RecheckDataDirLockFile(void);
437 extern void ValidatePgVersion(const char *path);
438 extern void process_shared_preload_libraries(void);
439 extern void process_session_preload_libraries(void);
440 extern void pg_bindtextdomain(const char *domain);
441 extern bool has_rolreplication(Oid roleid);
442 
443 /* in access/transam/xlog.c */
444 extern bool BackupInProgress(void);
445 extern void CancelBackup(void);
446 
447 #endif /* MISCADMIN_H */
AuxProcType
Definition: miscadmin.h:388
PGDLLIMPORT bool IsPostmasterEnvironment
Definition: globals.c:100
PGDLLIMPORT int IntervalStyle
Definition: globals.c:109
void SetUserIdAndSecContext(Oid userid, int sec_context)
Definition: miscinit.c:396
int MaxBackends
Definition: globals.c:126
static char * argv0
Definition: pg_ctl.c:101
int VacuumCostPageDirty
Definition: globals.c:130
int64 pg_time_t
Definition: pgtime.h:23
int VacuumPageHit
Definition: globals.c:134
char OutputFileName[]
Definition: globals.c:62
bool stack_is_too_deep(void)
Definition: postgres.c:3164
PGDLLIMPORT volatile sig_atomic_t ConfigReloadPending
Definition: globals.c:34
void PreventCommandIfParallelMode(const char *cmdname)
Definition: utility.c:254
void InitializeSessionUserIdStandalone(void)
Definition: miscinit.c:579
char * DatabasePath
Definition: globals.c:85
bool BackupInProgress(void)
Definition: xlog.c:11433
void SetUserIdAndContext(Oid userid, bool sec_def_context)
Definition: miscinit.c:445
bool has_rolreplication(Oid roleid)
Definition: miscinit.c:465
bool VacuumCostActive
Definition: globals.c:139
Oid GetUserId(void)
Definition: miscinit.c:284
bool InSecurityRestrictedOperation(void)
Definition: miscinit.c:416
ProcessingMode Mode
Definition: miscinit.c:57
void AddToDataDirLockFile(int target_line, const char *str)
Definition: miscinit.c:1158
Definition: libpq-be.h:116
bool superuser_arg(Oid roleid)
Definition: superuser.c:57
PGDLLIMPORT Oid MyDatabaseTableSpace
Definition: globals.c:79
void process_session_preload_libraries(void)
Definition: miscinit.c:1500
PGDLLIMPORT int maintenance_work_mem
Definition: globals.c:114
PGDLLIMPORT volatile bool ProcDiePending
Definition: globals.c:31
unsigned int Oid
Definition: postgres_ext.h:31
PGDLLIMPORT char * DataDir
Definition: globals.c:60
void InitializeMaxBackends(void)
Definition: postinit.c:496
PGDLLIMPORT struct Latch * MyLatch
Definition: globals.c:52
int max_parallel_workers
Definition: globals.c:125
void PreventCommandIfReadOnly(const char *cmdname)
Definition: utility.c:236
void SetDatabasePath(const char *path)
Definition: miscinit.c:83
bool InLocalUserIdChange(void)
Definition: miscinit.c:407
int VacuumPageDirty
Definition: globals.c:136
#define PGDLLIMPORT
Definition: c.h:1069
char * shared_preload_libraries_string
Definition: miscinit.c:1422
signed int int32
Definition: c.h:246
Oid GetOuterUserId(void)
Definition: miscinit.c:295
PGDLLIMPORT int MyProcPid
Definition: globals.c:39
int VacuumCostDelay
Definition: globals.c:132
AuxProcType MyAuxProcType
Definition: bootstrap.c:69
bool InNoForceRLSOperation(void)
Definition: miscinit.c:425
bool allowSystemTableMods
Definition: globals.c:112
Oid GetAuthenticatedUserId(void)
Definition: miscinit.c:343
void process_shared_preload_libraries(void)
Definition: miscinit.c:1487
int VacuumCostPageHit
Definition: globals.c:128
PGDLLIMPORT bool IsBackgroundWorker
Definition: globals.c:103
void CreateSocketLockFile(const char *socketfile, bool amPostmaster, const char *socketDir)
Definition: miscinit.c:1090
PGDLLIMPORT volatile bool QueryCancelPending
Definition: globals.c:30
int trace_recovery_messages
Definition: guc.c:455
char * local_preload_libraries_string
Definition: miscinit.c:1423
int VacuumCostLimit
Definition: globals.c:131
void InitPostgres(const char *in_dbname, Oid dboid, const char *username, Oid useroid, char *out_dbname)
Definition: postinit.c:559
char pkglib_path[]
Definition: globals.c:65
Definition: latch.h:110
bool enableFsync
Definition: globals.c:111
PGDLLIMPORT struct Port * MyProcPort
Definition: globals.c:41
PGDLLIMPORT int NBuffers
Definition: globals.c:122
PGDLLIMPORT pg_time_t MyStartTime
Definition: globals.c:40
void check_stack_depth(void)
Definition: postgres.c:3150
char * session_preload_libraries_string
Definition: miscinit.c:1421
void InitStandaloneProcess(const char *argv0)
Definition: miscinit.c:220
unsigned int uint32
Definition: c.h:258
void SwitchBackToLocalLatch(void)
Definition: miscinit.c:265
bool superuser(void)
Definition: superuser.c:47
void ValidatePgVersion(const char *path)
Definition: miscinit.c:1358
PGDLLIMPORT volatile uint32 QueryCancelHoldoffCount
Definition: globals.c:36
PGDLLIMPORT volatile uint32 InterruptHoldoffCount
Definition: globals.c:35
void GetUserIdAndContext(Oid *userid, bool *sec_def_context)
Definition: miscinit.c:438
Oid GetSessionUserId(void)
Definition: miscinit.c:318
void pg_bindtextdomain(const char *domain)
Definition: miscinit.c:1511
void SwitchToSharedLatch(void)
Definition: miscinit.c:246
void TouchSocketLockFiles(void)
Definition: miscinit.c:1108
void SetDataDir(const char *dir)
Definition: miscinit.c:95
void SetCurrentRoleId(Oid roleid, bool is_superuser)
Definition: miscinit.c:657
void CancelBackup(void)
Definition: xlog.c:11453
pg_stack_base_t set_stack_base(void)
Definition: postgres.c:3097
PGDLLIMPORT volatile bool InterruptPending
Definition: globals.c:29
void pg_split_opts(char **argv, int *argcp, const char *optstr)
Definition: postinit.c:437
void SetSessionAuthorization(Oid userid, bool is_superuser)
Definition: miscinit.c:611
int trace_recovery(int trace_level)
Definition: elog.c:3753
void restore_stack_base(pg_stack_base_t base)
Definition: postgres.c:3128
PGDLLIMPORT bool IsBinaryUpgrade
Definition: globals.c:102
void CreateDataDirLockFile(bool amPostmaster)
Definition: miscinit.c:1081
static char * username
Definition: initdb.c:132
int VacuumCostBalance
Definition: globals.c:138
PGDLLIMPORT pid_t PostmasterPid
Definition: globals.c:87
bool ExitOnAnyError
Definition: globals.c:105
int32 MyCancelKey
Definition: globals.c:42
char * GetUserNameFromId(Oid roleid, bool noerr)
Definition: miscinit.c:692
#define SIGNAL_ARGS
Definition: c.h:1085
PGDLLIMPORT volatile bool IdleInTransactionSessionTimeoutPending
Definition: globals.c:33
PGDLLIMPORT bool IsUnderPostmaster
Definition: globals.c:101
void InitializeSessionUserId(const char *rolename, Oid useroid)
Definition: miscinit.c:483
PGDLLIMPORT int DateStyle
Definition: globals.c:107
void ChangeToDataDir(void)
Definition: miscinit.c:116
void PostgresSigHupHandler(SIGNAL_ARGS)
Definition: postgres.c:2723
void GetUserIdAndSecContext(Oid *userid, int *sec_context)
Definition: miscinit.c:389
PGDLLIMPORT int work_mem
Definition: globals.c:113
ProcessingMode
Definition: miscadmin.h:358
PGDLLIMPORT volatile uint32 CritSectionCount
Definition: globals.c:37
static bool is_superuser(Archive *fout)
Definition: pg_dump.c:3748
bool RecheckDataDirLockFile(void)
Definition: miscinit.c:1286
volatile bool ClientConnectionLost
Definition: globals.c:32
char * stack_base_ptr
Definition: postgres.c:117
void ProcessInterrupts(void)
Definition: postgres.c:2860
int VacuumCostPageMiss
Definition: globals.c:129
PGDLLIMPORT char my_exec_path[]
Definition: globals.c:64
void BaseInit(void)
Definition: postinit.c:518
PGDLLIMPORT Oid MyDatabaseId
Definition: globals.c:77
int MaxConnections
Definition: globals.c:123
PGDLLIMPORT bool process_shared_preload_libraries_in_progress
Definition: miscinit.c:1426
int VacuumPageMiss
Definition: globals.c:135
int MyPMChildSlot
Definition: globals.c:43
void PreventCommandDuringRecovery(const char *cmdname)
Definition: utility.c:273
int max_worker_processes
Definition: globals.c:124
bool IgnoreSystemIndexes
Definition: miscinit.c:74
Oid GetCurrentRoleId(void)
Definition: miscinit.c:636
char * pg_stack_base_t
Definition: miscadmin.h:268
void InitPostmasterChild(void)
Definition: miscinit.c:176
PGDLLIMPORT int DateOrder
Definition: globals.c:108