From f87e2c07603943e032d98da281dca83c87cb3edb Mon Sep 17 00:00:00 2001 From: momjian Date: Wed, 7 Jan 2009 04:26:46 +0000 Subject: [PATCH] Make the log output of 'vxid' between csvlog and stderr/syslog consistent. Currently, in csvlog, vxid of an auxiliary process isn't displayed. On the other hand, in stderr/syslog, invalid vxid (-1/0) of that is displayed. Fujii Masao --- src/backend/utils/error/elog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c index 98a7beffe5..89163d6c86 100644 --- a/src/backend/utils/error/elog.c +++ b/src/backend/utils/error/elog.c @@ -1693,7 +1693,7 @@ log_line_prefix(StringInfo buf) break; case 'v': /* keep VXID format in sync with lockfuncs.c */ - if (MyProc != NULL) + if (MyProc != NULL && MyProc->backendId != InvalidBackendId) appendStringInfo(buf, "%d/%u", MyProc->backendId, MyProc->lxid); break; -- 2.11.4.GIT