mirror of
https://github.com/postgres/postgres.git
synced 2026-05-28 04:35:45 -04:00
When outputting the session id in log_line_prefix (%c) or in CSV log
output mode, cause the hex digits after the period to always be at least four hex digits, with zero-padding.
This commit is contained in:
parent
b72bd3d1c6
commit
22cc3b35f4
1 changed files with 2 additions and 2 deletions
|
|
@ -1970,7 +1970,7 @@ log_line_prefix(StringInfo buf, ErrorData *edata)
|
|||
}
|
||||
break;
|
||||
case 'c':
|
||||
appendStringInfo(buf, "%lx.%x", (long) (MyStartTime), MyProcPid);
|
||||
appendStringInfo(buf, "%lx.%04x", (long) (MyStartTime), MyProcPid);
|
||||
break;
|
||||
case 'p':
|
||||
appendStringInfo(buf, "%d", MyProcPid);
|
||||
|
|
@ -2149,7 +2149,7 @@ write_csvlog(ErrorData *edata)
|
|||
appendStringInfoChar(&buf, ',');
|
||||
|
||||
/* session id */
|
||||
appendStringInfo(&buf, "%lx.%x", (long) MyStartTime, MyProcPid);
|
||||
appendStringInfo(&buf, "%lx.%04x", (long) MyStartTime, MyProcPid);
|
||||
appendStringInfoChar(&buf, ',');
|
||||
|
||||
/* Line number */
|
||||
|
|
|
|||
Loading…
Reference in a new issue