Skip to content

Commit 38c0135

Browse files
committed
fix comment regarding collation
1 parent d7cabff commit 38c0135

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/pg_pathman.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,16 +1133,17 @@ handle_binary_opexpr(WalkerContext *context, WrapperNode *result,
11331133
Oid collid;
11341134

11351135
/*
1136-
* If operator collation is different from default attribute
1137-
* collation then we cannot guarantee that we return correct
1138-
* partitions. So in this case we just return all of them
1136+
* We cannot guarantee that we'll return correct partitions set
1137+
* if operator collation is different from default attribute collation.
1138+
* In this case we just return all of them.
11391139
*/
1140-
if (expr->opcollid != prel->attcollid && strategy != BTEqualStrategyNumber)
1140+
if (expr->opcollid != prel->attcollid &&
1141+
strategy != BTEqualStrategyNumber)
11411142
goto binary_opexpr_return;
11421143

11431144
collid = OidIsValid(expr->opcollid) ?
1144-
expr->opcollid :
1145-
prel->attcollid;
1145+
expr->opcollid :
1146+
prel->attcollid;
11461147

11471148
fill_type_cmp_fmgr_info(&cmp_func,
11481149
getBaseType(c->consttype),

0 commit comments

Comments
 (0)