1 /*-------------------------------------------------------------------------
4 * global variable declarations
6 * Portions Copyright (c) 1996-2002, 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.66 2002/08/12 00:36:11 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;
43 * The PGDATA directory user says to use, or defaults to via environment
44 * variable. NULL if no option given and no environment variable set
47 char OutputFileName[MAXPGPATH];
49 char pg_pathname[MAXPGPATH]; /* full path to postgres
52 BackendId MyBackendId;
54 char *DatabaseName = NULL;
55 char *DatabasePath = NULL;
57 Oid MyDatabaseId = InvalidOid;
59 bool IsUnderPostmaster = false;
61 int DateStyle = USE_ISO_DATES;
62 bool EuroDates = false;
63 bool HasCTZSet = false;
64 bool CDayLight = false;
66 char CTZName[MAXTZLEN + 1] = "";
68 char DateFormat[20] = "%d-%m-%Y"; /* mjl: sizes! or better
70 char FloatFormat[20] = "%f";
72 bool enableFsync = true;
73 bool allowSystemTableMods = false;
76 int NBuffers = DEF_NBUFFERS;