PostgreSQL Source Code  git master
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-2018, 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 PGDLLIMPORT bool ExitOnAnyError;
154 
155 extern PGDLLIMPORT char *DataDir;
157 
158 extern PGDLLIMPORT int NBuffers;
159 extern PGDLLIMPORT int MaxBackends;
160 extern PGDLLIMPORT int MaxConnections;
163 
164 extern PGDLLIMPORT int MyProcPid;
166 extern PGDLLIMPORT struct Port *MyProcPort;
167 extern PGDLLIMPORT struct Latch *MyLatch;
168 extern int32 MyCancelKey;
169 extern int MyPMChildSlot;
170 
171 extern char OutputFileName[];
172 extern PGDLLIMPORT char my_exec_path[];
173 extern char pkglib_path[];
174 
175 #ifdef EXEC_BACKEND
176 extern char postgres_exec_path[];
177 #endif
178 
179 /*
180  * done in storage/backendid.h for now.
181  *
182  * extern BackendId MyBackendId;
183  */
185 
187 
188 /*
189  * Date/Time Configuration
190  *
191  * DateStyle defines the output formatting choice for date/time types:
192  * USE_POSTGRES_DATES specifies traditional Postgres format
193  * USE_ISO_DATES specifies ISO-compliant format
194  * USE_SQL_DATES specifies Oracle/Ingres-compliant format
195  * USE_GERMAN_DATES specifies German-style dd.mm/yyyy
196  *
197  * DateOrder defines the field order to be assumed when reading an
198  * ambiguous date (anything not in YYYY-MM-DD format, with a four-digit
199  * year field first, is taken to be ambiguous):
200  * DATEORDER_YMD specifies field order yy-mm-dd
201  * DATEORDER_DMY specifies field order dd-mm-yy ("European" convention)
202  * DATEORDER_MDY specifies field order mm-dd-yy ("US" convention)
203  *
204  * In the Postgres and SQL DateStyles, DateOrder also selects output field
205  * order: day comes before month in DMY style, else month comes before day.
206  *
207  * The user-visible "DateStyle" run-time parameter subsumes both of these.
208  */
209 
210 /* valid DateStyle values */
211 #define USE_POSTGRES_DATES 0
212 #define USE_ISO_DATES 1
213 #define USE_SQL_DATES 2
214 #define USE_GERMAN_DATES 3
215 #define USE_XSD_DATES 4
216 
217 /* valid DateOrder values */
218 #define DATEORDER_YMD 0
219 #define DATEORDER_DMY 1
220 #define DATEORDER_MDY 2
221 
222 extern PGDLLIMPORT int DateStyle;
223 extern PGDLLIMPORT int DateOrder;
224 
225 /*
226  * IntervalStyles
227  * INTSTYLE_POSTGRES Like Postgres < 8.4 when DateStyle = 'iso'
228  * INTSTYLE_POSTGRES_VERBOSE Like Postgres < 8.4 when DateStyle != 'iso'
229  * INTSTYLE_SQL_STANDARD SQL standard interval literals
230  * INTSTYLE_ISO_8601 ISO-8601-basic formatted intervals
231  */
232 #define INTSTYLE_POSTGRES 0
233 #define INTSTYLE_POSTGRES_VERBOSE 1
234 #define INTSTYLE_SQL_STANDARD 2
235 #define INTSTYLE_ISO_8601 3
236 
237 extern PGDLLIMPORT int IntervalStyle;
238 
239 #define MAXTZLEN 10 /* max TZ name len, not counting tr. null */
240 
241 extern bool enableFsync;
243 extern PGDLLIMPORT int work_mem;
246 
247 extern int VacuumCostPageHit;
248 extern int VacuumCostPageMiss;
249 extern int VacuumCostPageDirty;
250 extern int VacuumCostLimit;
251 extern int VacuumCostDelay;
252 
253 extern int VacuumPageHit;
254 extern int VacuumPageMiss;
255 extern int VacuumPageDirty;
256 
257 extern int VacuumCostBalance;
258 extern bool VacuumCostActive;
259 
261 
262 
263 /* in tcop/postgres.c */
264 
265 #if defined(__ia64__) || defined(__ia64)
266 typedef struct
267 {
268  char *stack_base_ptr;
269  char *register_stack_base_ptr;
271 #else
272 typedef char *pg_stack_base_t;
273 #endif
274 
275 extern pg_stack_base_t set_stack_base(void);
276 extern void restore_stack_base(pg_stack_base_t base);
277 extern void check_stack_depth(void);
278 extern bool stack_is_too_deep(void);
279 
281 
282 /* in tcop/utility.c */
283 extern void PreventCommandIfReadOnly(const char *cmdname);
284 extern void PreventCommandIfParallelMode(const char *cmdname);
285 extern void PreventCommandDuringRecovery(const char *cmdname);
286 
287 /* in utils/misc/guc.c */
288 extern int trace_recovery_messages;
289 extern int trace_recovery(int trace_level);
290 
291 /*****************************************************************************
292  * pdir.h -- *
293  * POSTGRES directory path definitions. *
294  *****************************************************************************/
295 
296 /* flags to be OR'd to form sec_context */
297 #define SECURITY_LOCAL_USERID_CHANGE 0x0001
298 #define SECURITY_RESTRICTED_OPERATION 0x0002
299 #define SECURITY_NOFORCE_RLS 0x0004
300 
301 extern char *DatabasePath;
302 
303 /* now in utils/init/miscinit.c */
304 extern void InitPostmasterChild(void);
305 extern void InitStandaloneProcess(const char *argv0);
306 
307 extern void SetDatabasePath(const char *path);
308 
309 extern char *GetUserNameFromId(Oid roleid, bool noerr);
310 extern Oid GetUserId(void);
311 extern Oid GetOuterUserId(void);
312 extern Oid GetSessionUserId(void);
313 extern Oid GetAuthenticatedUserId(void);
314 extern void GetUserIdAndSecContext(Oid *userid, int *sec_context);
315 extern void SetUserIdAndSecContext(Oid userid, int sec_context);
316 extern bool InLocalUserIdChange(void);
317 extern bool InSecurityRestrictedOperation(void);
318 extern bool InNoForceRLSOperation(void);
319 extern void GetUserIdAndContext(Oid *userid, bool *sec_def_context);
320 extern void SetUserIdAndContext(Oid userid, bool sec_def_context);
321 extern void InitializeSessionUserId(const char *rolename, Oid useroid);
322 extern void InitializeSessionUserIdStandalone(void);
323 extern void SetSessionAuthorization(Oid userid, bool is_superuser);
324 extern Oid GetCurrentRoleId(void);
325 extern void SetCurrentRoleId(Oid roleid, bool is_superuser);
326 
327 extern void checkDataDir(void);
328 extern void SetDataDir(const char *dir);
329 extern void ChangeToDataDir(void);
330 
331 extern void SwitchToSharedLatch(void);
332 extern void SwitchBackToLocalLatch(void);
333 
334 /* in utils/misc/superuser.c */
335 extern bool superuser(void); /* current user is superuser */
336 extern bool superuser_arg(Oid roleid); /* given user is superuser */
337 
338 
339 /*****************************************************************************
340  * pmod.h -- *
341  * POSTGRES processing mode definitions. *
342  *****************************************************************************/
343 
344 /*
345  * Description:
346  * There are three processing modes in POSTGRES. They are
347  * BootstrapProcessing or "bootstrap," InitProcessing or
348  * "initialization," and NormalProcessing or "normal."
349  *
350  * The first two processing modes are used during special times. When the
351  * system state indicates bootstrap processing, transactions are all given
352  * transaction id "one" and are consequently guaranteed to commit. This mode
353  * is used during the initial generation of template databases.
354  *
355  * Initialization mode: used while starting a backend, until all normal
356  * initialization is complete. Some code behaves differently when executed
357  * in this mode to enable system bootstrapping.
358  *
359  * If a POSTGRES backend process is in normal mode, then all code may be
360  * executed normally.
361  */
362 
363 typedef enum ProcessingMode
364 {
365  BootstrapProcessing, /* bootstrap creation of template database */
366  InitProcessing, /* initializing system */
367  NormalProcessing /* normal processing */
369 
370 extern ProcessingMode Mode;
371 
372 #define IsBootstrapProcessingMode() (Mode == BootstrapProcessing)
373 #define IsInitProcessingMode() (Mode == InitProcessing)
374 #define IsNormalProcessingMode() (Mode == NormalProcessing)
375 
376 #define GetProcessingMode() Mode
377 
378 #define SetProcessingMode(mode) \
379  do { \
380  AssertArg((mode) == BootstrapProcessing || \
381  (mode) == InitProcessing || \
382  (mode) == NormalProcessing); \
383  Mode = (mode); \
384  } while(0)
385 
386 
387 /*
388  * Auxiliary-process type identifiers. These used to be in bootstrap.h
389  * but it seems saner to have them here, with the ProcessingMode stuff.
390  * The MyAuxProcType global is defined and set in bootstrap.c.
391  */
392 
393 typedef enum
394 {
403 
404  NUM_AUXPROCTYPES /* Must be last! */
405 } AuxProcType;
406 
408 
409 #define AmBootstrapProcess() (MyAuxProcType == BootstrapProcess)
410 #define AmStartupProcess() (MyAuxProcType == StartupProcess)
411 #define AmBackgroundWriterProcess() (MyAuxProcType == BgWriterProcess)
412 #define AmCheckpointerProcess() (MyAuxProcType == CheckpointerProcess)
413 #define AmWalWriterProcess() (MyAuxProcType == WalWriterProcess)
414 #define AmWalReceiverProcess() (MyAuxProcType == WalReceiverProcess)
415 
416 
417 /*****************************************************************************
418  * pinit.h -- *
419  * POSTGRES initialization and cleanup definitions. *
420  *****************************************************************************/
421 
422 /* in utils/init/postinit.c */
423 extern void pg_split_opts(char **argv, int *argcp, const char *optstr);
424 extern void InitializeMaxBackends(void);
425 extern void InitPostgres(const char *in_dbname, Oid dboid, const char *username,
426  Oid useroid, char *out_dbname, bool override_allow_connections);
427 extern void BaseInit(void);
428 
429 /* in utils/init/miscinit.c */
430 extern bool IgnoreSystemIndexes;
434 extern char *local_preload_libraries_string;
435 
436 extern void CreateDataDirLockFile(bool amPostmaster);
437 extern void CreateSocketLockFile(const char *socketfile, bool amPostmaster,
438  const char *socketDir);
439 extern void TouchSocketLockFiles(void);
440 extern void AddToDataDirLockFile(int target_line, const char *str);
441 extern bool RecheckDataDirLockFile(void);
442 extern void ValidatePgVersion(const char *path);
443 extern void process_shared_preload_libraries(void);
444 extern void process_session_preload_libraries(void);
445 extern void pg_bindtextdomain(const char *domain);
446 extern bool has_rolreplication(Oid roleid);
447 
448 /* in access/transam/xlog.c */
449 extern bool BackupInProgress(void);
450 extern void CancelBackup(void);
451 
452 #endif /* MISCADMIN_H */
PGDLLIMPORT int max_worker_processes
Definition: globals.c:134
AuxProcType
Definition: miscadmin.h:393
PGDLLIMPORT bool IsPostmasterEnvironment
Definition: globals.c:109
PGDLLIMPORT int IntervalStyle
Definition: globals.c:118
void SetUserIdAndSecContext(Oid userid, int sec_context)
Definition: miscinit.c:491
static char * argv0
Definition: pg_ctl.c:94
int VacuumCostPageDirty
Definition: globals.c:140
int64 pg_time_t
Definition: pgtime.h:23
int VacuumPageHit
Definition: globals.c:144
char OutputFileName[]
Definition: globals.c:71
bool stack_is_too_deep(void)
Definition: postgres.c:3169
PGDLLIMPORT volatile sig_atomic_t ConfigReloadPending
Definition: globals.c:37
void PreventCommandIfParallelMode(const char *cmdname)
Definition: utility.c:256
void InitializeSessionUserIdStandalone(void)
Definition: miscinit.c:674
char * DatabasePath
Definition: globals.c:94
bool BackupInProgress(void)
Definition: xlog.c:11479
void SetUserIdAndContext(Oid userid, bool sec_def_context)
Definition: miscinit.c:540
void checkDataDir(void)
Definition: miscinit.c:97
bool has_rolreplication(Oid roleid)
Definition: miscinit.c:560
bool VacuumCostActive
Definition: globals.c:149
Oid GetUserId(void)
Definition: miscinit.c:379
bool InSecurityRestrictedOperation(void)
Definition: miscinit.c:511
ProcessingMode Mode
Definition: miscinit.c:58
void AddToDataDirLockFile(int target_line, const char *str)
Definition: miscinit.c:1250
Definition: libpq-be.h:116
bool superuser_arg(Oid roleid)
Definition: superuser.c:57
PGDLLIMPORT Oid MyDatabaseTableSpace
Definition: globals.c:88
void process_session_preload_libraries(void)
Definition: miscinit.c:1592
PGDLLIMPORT int maintenance_work_mem
Definition: globals.c:123
PGDLLIMPORT volatile bool ProcDiePending
Definition: globals.c:34
unsigned int Oid
Definition: postgres_ext.h:31
PGDLLIMPORT char * DataDir
Definition: globals.c:63
void InitializeMaxBackends(void)
Definition: postinit.c:502
PGDLLIMPORT struct Latch * MyLatch
Definition: globals.c:55
void PreventCommandIfReadOnly(const char *cmdname)
Definition: utility.c:238
void SetDatabasePath(const char *path)
Definition: miscinit.c:84
bool InLocalUserIdChange(void)
Definition: miscinit.c:502
int VacuumPageDirty
Definition: globals.c:146
#define PGDLLIMPORT
Definition: c.h:1105
char * shared_preload_libraries_string
Definition: miscinit.c:1514
signed int int32
Definition: c.h:313
Oid GetOuterUserId(void)
Definition: miscinit.c:390
PGDLLIMPORT int MyProcPid
Definition: globals.c:42
int VacuumCostDelay
Definition: globals.c:142
AuxProcType MyAuxProcType
Definition: bootstrap.c:69
bool InNoForceRLSOperation(void)
Definition: miscinit.c:520
Oid GetAuthenticatedUserId(void)
Definition: miscinit.c:438
PGDLLIMPORT bool ExitOnAnyError
Definition: globals.c:114
void process_shared_preload_libraries(void)
Definition: miscinit.c:1579
int VacuumCostPageHit
Definition: globals.c:138
PGDLLIMPORT bool IsBackgroundWorker
Definition: globals.c:112
void CreateSocketLockFile(const char *socketfile, bool amPostmaster, const char *socketDir)
Definition: miscinit.c:1182
PGDLLIMPORT volatile bool QueryCancelPending
Definition: globals.c:33
int trace_recovery_messages
Definition: guc.c:458
char * local_preload_libraries_string
Definition: miscinit.c:1515
int VacuumCostLimit
Definition: globals.c:141
char pkglib_path[]
Definition: globals.c:74
double vacuum_cleanup_index_scale_factor
Definition: globals.c:151
Definition: latch.h:110
bool enableFsync
Definition: globals.c:120
PGDLLIMPORT struct Port * MyProcPort
Definition: globals.c:44
PGDLLIMPORT int NBuffers
Definition: globals.c:132
PGDLLIMPORT pg_time_t MyStartTime
Definition: globals.c:43
void check_stack_depth(void)
Definition: postgres.c:3155
char * session_preload_libraries_string
Definition: miscinit.c:1513
void InitStandaloneProcess(const char *argv0)
Definition: miscinit.c:315
unsigned int uint32
Definition: c.h:325
void SwitchBackToLocalLatch(void)
Definition: miscinit.c:360
bool superuser(void)
Definition: superuser.c:47
void ValidatePgVersion(const char *path)
Definition: miscinit.c:1450
PGDLLIMPORT volatile uint32 QueryCancelHoldoffCount
Definition: globals.c:39
PGDLLIMPORT volatile uint32 InterruptHoldoffCount
Definition: globals.c:38
void GetUserIdAndContext(Oid *userid, bool *sec_def_context)
Definition: miscinit.c:533
Oid GetSessionUserId(void)
Definition: miscinit.c:413
PGDLLIMPORT int data_directory_mode
Definition: globals.c:69
void pg_bindtextdomain(const char *domain)
Definition: miscinit.c:1603
void SwitchToSharedLatch(void)
Definition: miscinit.c:341
void TouchSocketLockFiles(void)
Definition: miscinit.c:1200
void SetDataDir(const char *dir)
Definition: miscinit.c:190
void SetCurrentRoleId(Oid roleid, bool is_superuser)
Definition: miscinit.c:752
void CancelBackup(void)
Definition: xlog.c:11499
pg_stack_base_t set_stack_base(void)
Definition: postgres.c:3102
PGDLLIMPORT volatile bool InterruptPending
Definition: globals.c:32
void pg_split_opts(char **argv, int *argcp, const char *optstr)
Definition: postinit.c:443
void SetSessionAuthorization(Oid userid, bool is_superuser)
Definition: miscinit.c:706
int trace_recovery(int trace_level)
Definition: elog.c:3758
void restore_stack_base(pg_stack_base_t base)
Definition: postgres.c:3133
PGDLLIMPORT bool IsBinaryUpgrade
Definition: globals.c:111
void CreateDataDirLockFile(bool amPostmaster)
Definition: miscinit.c:1173
static char * username
Definition: initdb.c:132
int VacuumCostBalance
Definition: globals.c:148
PGDLLIMPORT bool allowSystemTableMods
Definition: globals.c:121
PGDLLIMPORT pid_t PostmasterPid
Definition: globals.c:96
int32 MyCancelKey
Definition: globals.c:45
char * GetUserNameFromId(Oid roleid, bool noerr)
Definition: miscinit.c:787
#define SIGNAL_ARGS
Definition: c.h:1121
PGDLLIMPORT volatile bool IdleInTransactionSessionTimeoutPending
Definition: globals.c:36
PGDLLIMPORT bool IsUnderPostmaster
Definition: globals.c:110
void InitializeSessionUserId(const char *rolename, Oid useroid)
Definition: miscinit.c:578
PGDLLIMPORT int DateStyle
Definition: globals.c:116
void ChangeToDataDir(void)
Definition: miscinit.c:211
void PostgresSigHupHandler(SIGNAL_ARGS)
Definition: postgres.c:2728
void GetUserIdAndSecContext(Oid *userid, int *sec_context)
Definition: miscinit.c:484
PGDLLIMPORT int work_mem
Definition: globals.c:122
ProcessingMode
Definition: miscadmin.h:363
PGDLLIMPORT volatile uint32 CritSectionCount
Definition: globals.c:40
static bool is_superuser(Archive *fout)
Definition: pg_dump.c:4015
bool RecheckDataDirLockFile(void)
Definition: miscinit.c:1378
volatile bool ClientConnectionLost
Definition: globals.c:35
char * stack_base_ptr
Definition: postgres.c:118
void ProcessInterrupts(void)
Definition: postgres.c:2865
int VacuumCostPageMiss
Definition: globals.c:139
PGDLLIMPORT char my_exec_path[]
Definition: globals.c:73
void BaseInit(void)
Definition: postinit.c:524
PGDLLIMPORT Oid MyDatabaseId
Definition: globals.c:86
PGDLLIMPORT int MaxConnections
Definition: globals.c:133
PGDLLIMPORT int max_parallel_workers
Definition: globals.c:135
PGDLLIMPORT bool process_shared_preload_libraries_in_progress
Definition: miscinit.c:1518
int VacuumPageMiss
Definition: globals.c:145
int MyPMChildSlot
Definition: globals.c:46
PGDLLIMPORT int MaxBackends
Definition: globals.c:136
void InitPostgres(const char *in_dbname, Oid dboid, const char *username, Oid useroid, char *out_dbname, bool override_allow_connections)
Definition: postinit.c:565
void PreventCommandDuringRecovery(const char *cmdname)
Definition: utility.c:275
bool IgnoreSystemIndexes
Definition: miscinit.c:75
PGDLLIMPORT int max_parallel_maintenance_workers
Definition: globals.c:124
Oid GetCurrentRoleId(void)
Definition: miscinit.c:731
char * pg_stack_base_t
Definition: miscadmin.h:272
void InitPostmasterChild(void)
Definition: miscinit.c:271
PGDLLIMPORT int DateOrder
Definition: globals.c:117