aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-08-19 09:48:25 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-08-19 09:48:25 +0300
commit56d23855c864b7384970724f3ad93fb0fc319e51 (patch)
tree3747986ccbd60000b5f40a9f11559773bc934750 /src
parentbd06cc338d82fd0c56de6421fe5ef143ec79cf6e (diff)
downloadpostgresql-56d23855c864b7384970724f3ad93fb0fc319e51.tar.gz
postgresql-56d23855c864b7384970724f3ad93fb0fc319e51.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/backend/postmaster/postmaster.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index 2c8e7fa7d64..a6fff93db34 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -2612,7 +2612,7 @@ CleanupBackend(Backend *bp,
if (crashed)
{
- HandleChildCrash(bp->pid, exitstatus, namebuf);
+ HandleChildCrash(bp->pid, exitstatus, procname);
pfree(bp);
return;
}