summaryrefslogtreecommitdiff
path: root/src/backend/utils/init/globals.c
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1997-03-25 08:11:24 +0000
committerMarc G. Fournier <scrappy@hub.org>1997-03-25 08:11:24 +0000
commitdfe04753629d6b2203b9b4db8a299d451fe5b387 (patch)
treeca6cdc67c96085342f5cd625685b939088dd29b6 /src/backend/utils/init/globals.c
parentd2a386d6e35c1791ffcc8f09fe162b0591184f95 (diff)
downloadpostgresql-dfe04753629d6b2203b9b4db8a299d451fe5b387.tar.gz
From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Subject: [HACKERS] More patches for date/time I have accumulated several patches to add functionality to the datetime and timespan data types as well as to fix reported porting bugs on non-BSD machines. These patches are: dt.c.patch - add datetime_part(), fix bugs dt.h.patch - add quarter and timezone support, add prototypes globals.c.patch - add time and timezone variables miscadmin.h.patch - add time and timezone variables nabstime.c.patch - add datetime conversion routine nabstime.h.patch - add prototypes pg_operator.h.patch - add datetime operators, clean up formatting pg_proc.h.patch - add datetime functions, reassign conflicting date OIDs pg_type.h.patch - add datetime and timespan data types The dt.c and pg_proc.h patches are fairly large; the latter mostly because I tried to get some columns for existing entries to line up.
Diffstat (limited to 'src/backend/utils/init/globals.c')
-rw-r--r--src/backend/utils/init/globals.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/utils/init/globals.c b/src/backend/utils/init/globals.c
index d5fa06071f..1fa7cf7187 100644
--- a/src/backend/utils/init/globals.c
+++ b/src/backend/utils/init/globals.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.7 1997/03/18 20:14:46 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.8 1997/03/25 08:09:43 scrappy Exp $
*
* NOTES
* Globals used all over the place should be declared here and not
@@ -65,11 +65,12 @@ bool IsPostmaster = false;
short DebugLvl = 0;
+int DateStyle = USE_ISO_DATES;
bool EuroDates = false;
bool HasCTZSet = false;
bool CDayLight = false;
int CTimeZone = 0;
-char CTZName[8] = "";
+char CTZName[MAXTZLEN+1] = "";
char DateFormat[20] = "%d-%m-%Y"; /* mjl: sizes! or better malloc? XXX */
char FloatFormat[20] = "%f";