From 5776a4d937614cd453b15ccf067d6056d88566b5 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 25 Sep 2024 15:39:56 -0700 Subject: [PATCH] Only adjust for TOAST [skip ci] --- src/hnsw.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/hnsw.c b/src/hnsw.c index 64ff080..0b6640a 100644 --- a/src/hnsw.c +++ b/src/hnsw.c @@ -172,11 +172,6 @@ hnswcostestimate(PlannerInfo *root, IndexPath *path, double loop_count, /* Remove cost of extra pages */ costs.indexTotalCost -= (costs.numIndexPages - path->indexinfo->rel->pages) * spc_seq_page_cost; } - else - { - /* Change some page cost from random to sequential */ - costs.indexTotalCost -= 0.5 * costs.numIndexPages * (costs.spc_random_page_cost - spc_seq_page_cost); - } /* Use total cost since most work happens before first tuple is returned */ *indexStartupCost = costs.indexTotalCost;