aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2009-01-07 04:26:46 +0000
committerBruce Momjian <bruce@momjian.us>2009-01-07 04:26:46 +0000
commit143e755bcf99be3eb922c5d875c53fcedef8f0b6 (patch)
tree2fe6d93370b88d15c1ce1e88f5bfeac049485a38 /src
parentd00a3472cfc4f7c429538e2dfdc4656244984f9d (diff)
downloadpostgresql-143e755bcf99be3eb922c5d875c53fcedef8f0b6.tar.gz
postgresql-143e755bcf99be3eb922c5d875c53fcedef8f0b6.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/error/elog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c
index 2551c5fbffc..a4a19967bab 100644
--- 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.210 2009/01/01 17:23:51 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.211 2009/01/07 04:26:46 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -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;