Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb2e4399

Browse files
committed
Code review for make_partition_op_expr.
It's better to use the actual keynum here rather than 0, becausesomeday someone might try to make list partitioning work withmultiple partitioning columns.Jeevan LadheDiscussion:http://postgr.es/m/CAOgcT0M6-mx+dSX47JGJuJP1CKr4XssBFVmKNETt0OZYWpFr+w@mail.gmail.com
1 parent05b5feb commitb2e4399

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/catalog/partition.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@ make_partition_op_expr(PartitionKey key, int keynum,
12661266
saopexpr->opno=operoid;
12671267
saopexpr->opfuncid=get_opcode(operoid);
12681268
saopexpr->useOr= true;
1269-
saopexpr->inputcollid=key->partcollation[0];
1269+
saopexpr->inputcollid=key->partcollation[keynum];
12701270
saopexpr->args=list_make2(arg1,arg2);
12711271
saopexpr->location=-1;
12721272

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp