1 /*-------------------------------------------------------------------------
4 * global variable declarations
6 * Copyright (c) 1994, Regents of the University of California
10 * $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.17 1997/11/24 05:09:13 momjian Exp $
13 * Globals used all over the place should be declared here and not
16 *-------------------------------------------------------------------------
22 #include <sys/types.h>
27 #include "miscadmin.h" /* where the declarations go */
29 #include <storage/backendid.h>
30 #include "access/heapam.h"
31 #include "storage/sinval.h"
32 #include "storage/sinvaladt.h"
33 #include "storage/lmgr.h"
34 #include "utils/elog.h"
36 #include "catalog/catname.h"
46 * The PGDATA directory user says to use, or defaults to via environment
47 * variable. NULL if no option given and no environment variable set
49 Relation reldesc; /* current relation descriptor */
51 char OutputFileName[MAXPGPATH] = "";
53 BackendId MyBackendId;
54 BackendTag MyBackendTag;
56 char *UserName = NULL;
57 char *DatabaseName = NULL;
58 char *DatabasePath = NULL;
60 bool MyDatabaseIdIsInitialized = false;
61 Oid MyDatabaseId = InvalidOid;
62 bool TransactionInitWasProcessed = false;
64 bool IsUnderPostmaster = false;
65 bool IsPostmaster = false;
69 int DateStyle = USE_POSTGRES_DATES;
70 bool EuroDates = false;
71 bool HasCTZSet = false;
72 bool CDayLight = false;
74 char CTZName[MAXTZLEN + 1] = "";
76 char DateFormat[20] = "%d-%m-%Y"; /* mjl: sizes! or better
78 char FloatFormat[20] = "%f";
83 char *IndexedCatalogNames[] = {
84 AttributeRelationName,
85 ProcedureRelationName,
93 * we just do a linear search now so there's no requirement that the list
94 * be ordered. The list is so small it shouldn't make much difference.
95 * make sure the list is null-terminated
99 * WARNING WARNING WARNING WARNING WARNING WARNING
101 * keep SharedSystemRelationNames[] in SORTED order! A binary search
102 * is done on it in catalog.c!
104 * XXX this is a serious hack which should be fixed -cim 1/26/90
107 char *SharedSystemRelationNames[] = {
108 DatabaseRelationName,
112 VariableRelationName,