Skip to content

Commit 45e88b5

Browse files
committed
Enable partial sort optimization for any index scan
1 parent 22f0ac2 commit 45e88b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/optimizer/path/pathkeys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ get_cheapest_partial_path_for_pathkeys(List *paths,
443443
{
444444
Path *path = (Path *) lfirst(l);
445445
int prefix_len = pathkeys_get_prefix(pathkeys, path->pathkeys);
446-
if (prefix_len < best_prefix_len || path->pathtype != T_IndexOnlyScan) {
446+
if (prefix_len < best_prefix_len) {
447447
continue;
448448
}
449449
/*

0 commit comments

Comments
 (0)