Remove duplicate InitPostmasterChild() call while starting a bgworker.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 2 Aug 2016 22:39:14 +0000 (18:39 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 2 Aug 2016 22:39:14 +0000 (18:39 -0400)
commitc6ea616ff702862fc6923323a49dd24a0e0ae2d9
treefbc9bb98bd5fd2ceb3845cf36651a302965a368c
parenta253a88594f6805168261ea1986df1cd6b9b25e0
Remove duplicate InitPostmasterChild() call while starting a bgworker.

This is apparently harmless on Windows, but on Unix it results in an
assertion failure.  We'd not noticed because this code doesn't get
used on Unix unless you build with -DEXEC_BACKEND.  Bug was evidently
introduced by sloppy refactoring in commit 31c453165.

Thomas Munro

Discussion: <CAEepm=1VOnbVx4wsgQFvj94hu9jVt2nVabCr7QiooUSvPJXkgQ@mail.gmail.com>
src/backend/postmaster/postmaster.c