postgresql/src/backend
Robert Haas 3a1f8611f2 Update parallel executor support to reuse the same DSM.
Commit b0b0d84b3d purported to make it
possible to relaunch workers using the same parallel context, but it had
an unpleasant race condition: we might reinitialize after the workers
have sent their last control message but before they have dettached the
DSM, leaving to crashes.  Repair by introducing a new ParallelContext
operation, ReinitializeParallelDSM.

Adjust execParallel.c to use this new support, so that we can rescan a
Gather node by relaunching workers but without needing to recreate the
DSM.

Amit Kapila, with some adjustments by me.  Extracted from latest parallel
sequential scan patch.
2015-10-30 10:44:54 +01:00
..
access Update parallel executor support to reuse the same DSM. 2015-10-30 10:44:54 +01:00
bootstrap pgindent run for 9.5 2015-05-23 21:35:49 -04:00
catalog Message style improvements 2015-10-28 20:38:36 -04:00
commands Message style improvements 2015-10-28 20:38:36 -04:00
executor Update parallel executor support to reuse the same DSM. 2015-10-30 10:44:54 +01:00
foreign Code review for foreign/custom join pushdown patch. 2015-05-10 14:36:36 -04:00
lib Avoid use of float arithmetic in bipartite_match.c. 2015-08-23 13:02:18 -04:00
libpq Don't send protocol messages to a shm_mq that no longer exists. 2015-10-16 09:42:33 -04:00
main Revoke support for strxfrm() that write past the specified array length. 2015-07-08 20:44:21 -04:00
nodes Allow FDWs to push down quals without breaking EvalPlanQual rechecks. 2015-10-15 13:00:40 -04:00
optimizer Make Gather node projection-capable. 2015-10-28 00:27:58 +01:00
parser Message style improvements 2015-10-28 20:38:36 -04:00
po Translation updates 2015-06-28 23:56:55 -04:00
port On Windows, ensure shared memory handle gets closed if not being used. 2015-10-13 11:21:33 -04:00
postmaster Fix typo in bgworker.c 2015-10-30 10:35:33 +01:00
regex Fix incorrect handling of lookahead constraints in pg_regprefix(). 2015-10-19 13:54:53 -07:00
replication Message style improvements 2015-10-28 20:38:36 -04:00
rewrite Apply SELECT policies in INSERT/UPDATE+RETURNING 2015-10-05 07:55:13 -04:00
snowball Remove no-longer-required function declarations. 2015-05-24 12:20:23 -04:00
storage shm_mq: Repair breakage from previous commit. 2015-10-22 22:01:11 -04:00
tcop Message style improvements 2015-10-28 20:38:36 -04:00
tsearch pgindent run for 9.5 2015-05-23 21:35:49 -04:00
utils Message style improvements 2015-10-28 20:38:36 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Revert "Have dtrace depend on object files directly, not objfiles.txt" 2015-10-15 13:16:03 -04:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
nls.mk Remove trailing slashes from directories in find command 2015-09-18 22:06:54 -04:00