From 3ba11d3df2115b04171a8eda8e0389e02578d8d0 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 7 Oct 2010 20:00:28 -0400 Subject: Teach CLUSTER to use seqscan-and-sort when it's faster than indexscan. ... or at least, when the planner's cost estimates say it will be faster. Leonardo Francalanci, reviewed by Itagaki Takahiro and Tom Lane --- src/backend/optimizer/util/pathnode.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/backend/optimizer/util/pathnode.c') diff --git a/src/backend/optimizer/util/pathnode.c b/src/backend/optimizer/util/pathnode.c index f8aa745fef6..71e0e75a569 100644 --- a/src/backend/optimizer/util/pathnode.c +++ b/src/backend/optimizer/util/pathnode.c @@ -969,6 +969,8 @@ create_unique_path(PlannerInfo *root, RelOptInfo *rel, Path *subpath, subpath->total_cost, rel->rows, rel->width, + 0.0, + work_mem, -1.0); /* -- cgit v1.2.3