1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-03 20:02:46 +03:00

Fix ExecReScanGatherMerge.

Not surprisingly, since it'd never ever been tested, ExecReScanGatherMerge
didn't work.  Fix it, and add a regression test case to exercise it.

Amit Kapila

Discussion: https://postgr.es/m/CAA4eK1JkByysFJNh9M349u_nNjqETuEnY_y1VUc_kJiU0bxtaQ@mail.gmail.com
This commit is contained in:
Tom Lane
2017-08-17 13:49:22 -04:00
parent b5178c5d08
commit a2b70c89ca
3 changed files with 60 additions and 0 deletions

View File

@ -334,6 +334,7 @@ ExecReScanGatherMerge(GatherMergeState *node)
ExecShutdownGatherMergeWorkers(node);
node->initialized = false;
node->gm_initialized = false;
if (node->pei)
ExecParallelReinitialize(node->pei);