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

Commit143e755

Browse files
committed
Make the log output of 'vxid' between csvlog and stderr/syslog
consistent. Currently, in csvlog, vxid of an auxiliary process isn'tdisplayed. On the other hand, in stderr/syslog, invalid vxid (-1/0) ofthat is displayed.Fujii Masao
1 parentd00a347 commit143e755

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/utils/error/elog.c

Lines changed: 2 additions & 2 deletions
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.210 2009/01/01 17:23:51 momjian Exp $
45+
* $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.211 2009/01/07 04:26:46 momjian Exp $
4646
*
4747
*-------------------------------------------------------------------------
4848
*/
@@ -1693,7 +1693,7 @@ log_line_prefix(StringInfo buf)
16931693
break;
16941694
case'v':
16951695
/* keep VXID format in sync with lockfuncs.c */
1696-
if (MyProc!=NULL)
1696+
if (MyProc!=NULL&&MyProc->backendId!=InvalidBackendId)
16971697
appendStringInfo(buf,"%d/%u",
16981698
MyProc->backendId,MyProc->lxid);
16991699
break;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp