-
- Downloads
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
Showing
- src/backend/access/transam/README.parallel 1 addition, 1 deletionsrc/backend/access/transam/README.parallel
- src/backend/access/transam/parallel.c 105 additions, 88 deletionssrc/backend/access/transam/parallel.c
- src/backend/executor/execParallel.c 3 additions, 4 deletionssrc/backend/executor/execParallel.c
- src/backend/postmaster/bgworker.c 61 additions, 44 deletionssrc/backend/postmaster/bgworker.c
- src/backend/utils/fmgr/dfmgr.c 10 additions, 5 deletionssrc/backend/utils/fmgr/dfmgr.c
- src/backend/utils/fmgr/fmgr.c 1 addition, 1 deletionsrc/backend/utils/fmgr/fmgr.c
- src/include/access/parallel.h 1 addition, 3 deletionssrc/include/access/parallel.h
- src/include/executor/execParallel.h 2 additions, 0 deletionssrc/include/executor/execParallel.h
- src/include/fmgr.h 3 additions, 3 deletionssrc/include/fmgr.h
Loading
Please register or sign in to comment