aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-07-03 17:57:28 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-07-03 17:57:28 -0400
commit4ea9948e58a57316330acb1701f979bc1e872f50 (patch)
tree69f6464939e4b4e9144d70259ead7dfd2a5f7114 /src/backend/executor/nodeModifyTable.c
parent2c6e6471af9f5b6e4d1b25814a86a1dbd2eb928a (diff)
downloadpostgresql-4ea9948e58a57316330acb1701f979bc1e872f50.tar.gz
postgresql-4ea9948e58a57316330acb1701f979bc1e872f50.zip
Fix up parallel-safety marking for appendrels.
The previous coding assumed that the value derived by set_rel_consider_parallel() for an appendrel parent would be accurate for all the appendrel's children; but this is not so, for example because one child might scan a temp table. Instead, apply set_rel_consider_parallel() to each child rel as well as the parent, and then take the AND of the results as controlling parallel safety for the appendrel as a whole. (We might someday be able to deal more intelligently than this with cases in which some of the childrels are parallel-safe and others not, but that's for later.) Robert Haas and Tom Lane
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions