Rename RecostColumnarIndexPaths to RecostColumnarPaths

pull/5140/head
Onur Tirtir 2021-07-26 13:42:44 +03:00
parent 734fa22272
commit 51691a8994
1 changed files with 11 additions and 11 deletions

View File

@ -61,7 +61,7 @@ static void ColumnarSetRelPathlistHook(PlannerInfo *root, RelOptInfo *rel, Index
RangeTblEntry *rte);
static void RemovePathsByPredicate(RelOptInfo *rel, PathPredicate removePathPredicate);
static bool IsNotIndexPath(Path *path);
static void RecostColumnarIndexPaths(PlannerInfo *root, RelOptInfo *rel, Oid relationId);
static void RecostColumnarPaths(PlannerInfo *root, RelOptInfo *rel, Oid relationId);
static void RecostColumnarIndexPath(PlannerInfo *root, RelOptInfo *rel, Oid relationId,
IndexPath *indexPath);
static Cost ColumnarIndexScanAddStartupCost(RelOptInfo *rel, Oid relationId,
@ -203,7 +203,7 @@ ColumnarSetRelPathlistHook(PlannerInfo *root, RelOptInfo *rel, Index rti,
* comparisons between them.
*/
RemovePathsByPredicate(rel, IsNotIndexPath);
RecostColumnarIndexPaths(root, rel, rte->relid);
RecostColumnarPaths(root, rel, rte->relid);
add_path(rel, customPath);
}
}
@ -244,14 +244,16 @@ IsNotIndexPath(Path *path)
/*
* RecostColumnarIndexPaths re-costs index paths of given RelOptInfo for
* RecostColumnarPaths re-costs paths of given RelOptInfo for
* columnar table with relationId.
*/
static void
RecostColumnarIndexPaths(PlannerInfo *root, RelOptInfo *rel, Oid relationId)
RecostColumnarPaths(PlannerInfo *root, RelOptInfo *rel, Oid relationId)
{
Path *path = NULL;
foreach_ptr(path, rel->pathlist)
{
if (IsA(path, IndexPath))
{
/*
* Since we don't provide implementations for scan_bitmap_next_block
@ -260,8 +262,6 @@ RecostColumnarIndexPaths(PlannerInfo *root, RelOptInfo *rel, Oid relationId)
* TableAmRoutine). For this reason, we only consider IndexPath's
* here.
*/
if (IsA(path, IndexPath))
{
RecostColumnarIndexPath(root, rel, relationId, (IndexPath *) path);
}
}