Fix garbled process name on backend crash

The log message on backend crash used wrong variable, which could be
uninitialized. Introduced in commit 28a520c0b7.

Reported-by: Alexander Lakhin
Discussion: https://www.postgresql.org/message-id/451b0797-83b8-cdbc-727f-8d7a7b0e3bca@gmail.com
This commit is contained in:
Heikki Linnakangas 2024-08-19 09:48:25 +03:00
parent bd06cc338d
commit 56d23855c8

View File

@ -2612,7 +2612,7 @@ CleanupBackend(Backend *bp,
if (crashed)
{
HandleChildCrash(bp->pid, exitstatus, namebuf);
HandleChildCrash(bp->pid, exitstatus, procname);
pfree(bp);
return;
}