Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitabc1d28

Browse files
committed
Suppress timezone output on log_line_prefix %t on Win32, because it is
too long.
1 parentd157f4c commitabc1d28

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
charstrfbuf[128];
13921392

13931393
strftime(strfbuf,sizeof(strfbuf),
1394+
/* Win32 timezone names are too long so don't print them. */
1395+
#ifndefWIN32
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)

[8]ページ先頭

©2009-2025 Movatter.jp