mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Add optimizer and executor support for parallel index scans.
In combination with 569174f1be, which
taught the btree AM how to perform parallel index scans, this allows
parallel index scan plans on btree indexes. This infrastructure
should be general enough to support parallel index scans for other
index AMs as well, if someone updates them to support parallel
scans.
Amit Kapila, reviewed and tested by Anastasia Lubennikova, Tushar
Ahuja, and Haribabu Kommi, and me.
This commit is contained in:
@@ -127,8 +127,6 @@ static void subquery_push_qual(Query *subquery,
|
||||
static void recurse_push_qual(Node *setOp, Query *topquery,
|
||||
RangeTblEntry *rte, Index rti, Node *qual);
|
||||
static void remove_unused_subquery_outputs(Query *subquery, RelOptInfo *rel);
|
||||
static int compute_parallel_worker(RelOptInfo *rel, BlockNumber heap_pages,
|
||||
BlockNumber index_pages);
|
||||
|
||||
|
||||
/*
|
||||
@@ -2885,7 +2883,7 @@ remove_unused_subquery_outputs(Query *subquery, RelOptInfo *rel)
|
||||
* "heap_pages" is the number of pages from the table that we expect to scan.
|
||||
* "index_pages" is the number of pages from the index that we expect to scan.
|
||||
*/
|
||||
static int
|
||||
int
|
||||
compute_parallel_worker(RelOptInfo *rel, BlockNumber heap_pages,
|
||||
BlockNumber index_pages)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user