aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2014-07-30 11:25:58 -0400
committerRobert Haas <rhaas@postgresql.org>2014-07-30 11:34:06 -0400
commite280c630a87e1b8325770c6073097d109d79a00f (patch)
tree5eaccc328330b234c60ac4624085c554e9abfb9f /src/backend/access/gist/gist.c
parent232f1475dce23e2fdd0568b35e9a7c470ae6c8ae (diff)
downloadpostgresql-e280c630a87e1b8325770c6073097d109d79a00f.tar.gz
postgresql-e280c630a87e1b8325770c6073097d109d79a00f.zip
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.
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions