Do a more complete job of supporting time zone information.
authorThomas G. Lockhart
Mon, 10 Nov 1997 15:37:15 +0000 (15:37 +0000)
committerThomas G. Lockhart
Mon, 10 Nov 1997 15:37:15 +0000 (15:37 +0000)
Try to save pre-existing TZ environment variable if possible.
Includes code from Keith Parks.

src/backend/tcop/variable.c

index aaf504b2ac7b7ef6d57cee093d467a72758fce09..4214aac03d782f8c7b7dfe8b33b716a0e3a9b81f 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for handling of 'SET var TO',
  *  'SHOW var' and 'RESET var' statements.
  *
- * $Id: variable.c,v 1.20 1997/11/10 15:24:56 thomas Exp $
+ * $Id: variable.c,v 1.21 1997/11/10 15:37:15 thomas Exp $
  *
  */
 
@@ -439,6 +439,11 @@ static char *defaultTZ = NULL;
 static char TZvalue[64];
 static char tzbuf[64];
 
+/* parse_timezone()
+ * Handle SET TIME ZONE...
+ * Try to save existing TZ environment variable for later use in RESET TIME ZONE.
+ * - thomas 1997-11-10
+ */
 bool
 parse_timezone(const char *value)
 {