Commit 5a4f7638 authored by Tom Lane's avatar Tom Lane

Small correction to previous patch: we shouldn't ReleasePostmasterChildSlot

for a dead_end child, because we didn't AssignPostmasterChildSlot.
parent 45f9b464
......@@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.588 2009/08/24 17:23:02 alvherre Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.589 2009/08/24 18:09:37 tgl Exp $
*
* NOTES
*
......@@ -3024,7 +3024,8 @@ BackendStartup(Port *port)
/* in parent, fork failed */
int save_errno = errno;
(void) ReleasePostmasterChildSlot(bn->child_slot);
if (!bn->dead_end)
(void) ReleasePostmasterChildSlot(bn->child_slot);
free(bn);
errno = save_errno;
ereport(LOG,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment