]> granicus.if.org Git - postgresql/commit
Centralize decision-making about where to get a backend's PGPROC.
authorRobert Haas <rhaas@postgresql.org>
Tue, 28 Jul 2015 18:51:57 +0000 (14:51 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 28 Jul 2015 18:51:57 +0000 (14:51 -0400)
commit6f2871f12e9fba5deec4296cfe12e85c140261c4
treeb8f7aba03bdb6d8d365d383ae63a97a364e9fcb7
parent95f4e59c3286671656aff7db45b322f14a7bb8cc
Centralize decision-making about where to get a backend's PGPROC.

This code was originally written as part of parallel query effort, but
it seems to have independent value, because if we make one decision
about where to get a PGPROC when we allocate and then put it back on a
different list at backend-exit time, bad things happen.  This isn't
just a theoretical risk; we fixed an actual problem of this type in
commit e280c630a87e1b8325770c6073097d109d79a00f.
src/backend/storage/lmgr/proc.c
src/include/storage/proc.h