Avoid passing function pointers across process boundaries.
Tom Lane <tgl@sss.pgh.pa.us>
Avoid passing function pointers across process boundaries. This back-patches commit 32470825d36d99a81347ee36c181d609c952c061 into 9.6, primarily to make buildfarm member culicidae happy. Unlike the HEAD patch, avoid changing the existing API of CreateParallelContext; instead we just switch to using CreateParallelContextForExternalFunction, even for core functions. Petr Jelinek, with a bunch of basically-cosmetic adjustments by me Discussion: https://postgr.es/m/548f9c1d-eafa-e3fa-9da8-f0cc2f654e60@2ndquadrant.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/parallel.c | modified | +104 −41 |
| src/backend/access/transam/README.parallel | modified | +1 −1 |
| src/backend/executor/execParallel.c | modified | +3 −4 |
| src/backend/postmaster/bgworker.c | modified | +57 −46 |
| src/include/executor/execParallel.h | modified | +2 −0 |
Discussion
- logical replication launcher crash on buildfarm 41 messages · 2017-03-16 → 2017-04-16