git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d157f4c)
Suppress timezone output on log_line_prefix %t on Win32, because it is
Sat, 9 Oct 2004 01:24:47 +0000 (01:24 +0000)
Sat, 9 Oct 2004 01:24:47 +0000 (01:24 +0000)
too long.


diff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c
index 42ba5ccb187e76e56ffe410a7bc64176bf52b909..1cef96f35122f36ebac5bed577378e98a6f9c2f1 100644 (file)
--- a/src/backend/utils/error/elog.c
+++ b/src/backend/utils/error/elog.c
@@ -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);
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /