1 /*-------------------------------------------------------------------------
4 * global variable declarations
6 * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
11 * $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.75 2003/08/26 15:38:25 tgl Exp $
14 * Globals used all over the place should be declared here and not
17 *-------------------------------------------------------------------------
21 #include "libpq/pqcomm.h"
22 #include "miscadmin.h"
23 #include "storage/backendid.h"
26 ProtocolVersion FrontendProtocol = PG_PROTOCOL_LATEST;
28 bool Noversion = false;
30 volatile bool InterruptPending = false;
31 volatile bool QueryCancelPending = false;
32 volatile bool ProcDiePending = false;
33 volatile bool ImmediateInterruptOK = false;
34 volatile uint32 InterruptHoldoffCount = 0;
35 volatile uint32 CritSectionCount = 0;
38 struct Port *MyProcPort;
44 * The PGDATA directory user says to use, or defaults to via environment
45 * variable. NULL if no option given and no environment variable set
48 char OutputFileName[MAXPGPATH];
50 char pg_pathname[MAXPGPATH]; /* full path to postgres
53 BackendId MyBackendId;
55 char *DatabasePath = NULL;
56 Oid MyDatabaseId = InvalidOid;
58 /* these are initialized for the bootstrap/standalone case: */
59 bool IsPostmasterEnvironment = false;
60 bool IsUnderPostmaster = false;
62 bool ExitOnAnyError = false;
64 int DateStyle = USE_ISO_DATES;
65 int DateOrder = DATEORDER_MDY;
66 bool HasCTZSet = false;
69 bool enableFsync = true;
70 bool allowSystemTableMods = false;