pgsql: Fix mishandling of background worker PGPROCs in EXEC_BACKEND bui - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Fix mishandling of background worker PGPROCs in EXEC_BACKEND bui
Date
Msg-id E1XCWXZ-0005lE-Vq@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix mishandling of background worker PGPROCs in EXEC_BACKEND builds.

InitProcess() relies on IsBackgroundWorker to decide whether the PGPROC
for a new backend should be taken from ProcGlobal's freeProcs or from
bgworkerFreeProcs.  In EXEC_BACKEND builds, InitProcess() is called
sooner than in non-EXEC_BACKEND builds, and IsBackgroundWorker wasn't
getting initialized soon enough.

Report by Noah Misch.  Diagnosis and fix by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e280c630a87e1b8325770c6073097d109d79a00f

Modified Files
--------------
src/backend/postmaster/postmaster.c |    3 +++
1 file changed, 3 insertions(+)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: doc: Clean up some recently added PL/pgSQL documentation
Next
From: Robert Haas
Date:
Subject: pgsql: Fix mishandling of background worker PGPROCs in EXEC_BACKEND bui