Skip to content

Commit 143e755

Browse files
committed
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
1 parent d00a347 commit 143e755

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy