pgsql: Allow treating TABLESAMPLE scans as parallel-safe.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Allow treating TABLESAMPLE scans as parallel-safe.
Date: 2016-07-03 20:55:33
Message-ID: E1bJoQP-00061e-Qo@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Allow treating TABLESAMPLE scans as parallel-safe.

This was the intention all along, but an extraneous "return;" in
set_rel_consider_parallel() caused sampled rels to never be marked
consider_parallel.

Since we don't have any partial tablesample path/plan type yet, there's
no possibility of parallelizing the sample scan itself; but this fix
allows such a scan to appear below a parallel join, for example.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/2c6e6471af9f5b6e4d1b25814a86a1dbd2eb928a

Modified Files
--------------
src/backend/optimizer/path/allpaths.c | 1 -
1 file changed, 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-07-03 21:57:34 pgsql: Fix up parallel-safety marking for appendrels.
Previous Message Tom Lane 2016-07-03 19:35:37 pgsql: Set correct cost data in Gather node added by force_parallel_mod