Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit abc1d28

Browse files
committed
Suppress timezone output on log_line_prefix %t on Win32, because it is
too long.
1 parent d157f4c commit abc1d28

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/backend/utils/error/elog.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
*
4343
*
4444
* IDENTIFICATION
45-
* $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.152 2004/10/07 15:21:54 momjian Exp $
45+
* $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.153 2004/10/09 01:24:47 momjian Exp $
4646
*
4747
*-------------------------------------------------------------------------
4848
*/
@@ -1391,7 +1391,12 @@ log_line_prefix(StringInfo buf)
13911391
char strfbuf[128];
13921392

13931393
strftime(strfbuf, sizeof(strfbuf),
1394+
/* Win32 timezone names are too long so don't print them. */
1395+
#ifndef WIN32
13941396
"%Y-%m-%d %H:%M:%S %Z",
1397+
#else
1398+
"%Y-%m-%d %H:%M:%S",
1399+
#endif
13951400
localtime(&stamp_time));
13961401
appendStringInfoString(buf, strfbuf);
13971402
}

0 commit comments

Comments
 (0)