pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Avoid passing function pointers across process boundaries. 2+ messages / 1 participants [nested] [flat]
* pgsql: Avoid passing function pointers across process boundaries. @ 2017-04-15 03:50 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2017-04-15 03:50 UTC (permalink / raw) To: pgsql-committers Avoid passing function pointers across process boundaries. We'd already recognized that we can't pass function pointers across process boundaries for functions in loadable modules, since a shared library could get loaded at different addresses in different processes. But actually the practice doesn't work for functions in the core backend either, if we're using EXEC_BACKEND. This is the cause of recent failures on buildfarm member culicidae. Switch to passing a string function name in all cases. Something like this needs to be back-patched into 9.6, but let's see if the buildfarm likes it first. Petr Jelinek, with a bunch of basically-cosmetic adjustments by me Discussion: https://postgr.es/m/548f9c1d-eafa-e3fa-9da8-f0cc2f654e60@2ndquadrant.com Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/32470825d36d99a81347ee36c181d609c952c061 Modified Files -------------- src/backend/access/transam/README.parallel | 2 +- src/backend/access/transam/parallel.c | 193 ++++++++++++++++------------- src/backend/executor/execParallel.c | 7 +- src/backend/postmaster/bgworker.c | 105 +++++++++------- src/backend/utils/fmgr/dfmgr.c | 15 ++- src/backend/utils/fmgr/fmgr.c | 2 +- src/include/access/parallel.h | 4 +- src/include/executor/execParallel.h | 2 + src/include/fmgr.h | 6 +- 9 files changed, 187 insertions(+), 149 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Avoid passing function pointers across process boundaries. @ 2017-04-15 20:23 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2017-04-15 20:23 UTC (permalink / raw) To: pgsql-committers 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 Branch ------ REL9_6_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/9c225acf0b97a7a3a5ca1a12ee0e89c98cf16442 Modified Files -------------- src/backend/access/transam/README.parallel | 2 +- src/backend/access/transam/parallel.c | 145 +++++++++++++++++++++-------- src/backend/executor/execParallel.c | 7 +- src/backend/postmaster/bgworker.c | 103 +++++++++++--------- src/include/executor/execParallel.h | 2 + 5 files changed, 167 insertions(+), 92 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2017-04-15 20:23 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2017-04-15 03:50 pgsql: Avoid passing function pointers across process boundaries. Tom Lane <tgl@sss.pgh.pa.us> 2017-04-15 20:23 pgsql: Avoid passing function pointers across process boundaries. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox