Suppress timezone output on log_line_prefix %t on Win32, because it is
authorBruce Momjian <bruce@momjian.us>
Sat, 9 Oct 2004 01:24:47 +0000 (01:24 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 9 Oct 2004 01:24:47 +0000 (01:24 +0000)
too long.

src/backend/utils/error/elog.c

index 42ba5ccb187e76e56ffe410a7bc64176bf52b909..1cef96f35122f36ebac5bed577378e98a6f9c2f1 100644 (file)
@@ -42,7 +42,7 @@
  *
  *
  * IDENTIFICATION
- *   $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.152 2004/10/07 15:21:54 momjian Exp $
+ *   $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.153 2004/10/09 01:24:47 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -1391,7 +1391,12 @@ log_line_prefix(StringInfo buf)
                    char        strfbuf[128];
 
                    strftime(strfbuf, sizeof(strfbuf),
+                   /* Win32 timezone names are too long so don't print them. */
+#ifndef WIN32
                             "%Y-%m-%d %H:%M:%S %Z",
+#else
+                            "%Y-%m-%d %H:%M:%S",
+#endif
                             localtime(&stamp_time));
                    appendStringInfoString(buf, strfbuf);
                }