Commit b2e4399b authored by Robert Haas's avatar Robert Haas

Code review for make_partition_op_expr.

It's better to use the actual keynum here rather than 0, because
someday someone might try to make list partitioning work with
multiple partitioning columns.

Jeevan Ladhe

Discussion: http://postgr.es/m/CAOgcT0M6-mx+dSX47JGJuJP1CKr4XssBFVmKNETt0OZYWpFr+w@mail.gmail.com
parent 05b5feb6
...@@ -1266,7 +1266,7 @@ make_partition_op_expr(PartitionKey key, int keynum, ...@@ -1266,7 +1266,7 @@ make_partition_op_expr(PartitionKey key, int keynum,
saopexpr->opno = operoid; saopexpr->opno = operoid;
saopexpr->opfuncid = get_opcode(operoid); saopexpr->opfuncid = get_opcode(operoid);
saopexpr->useOr = true; saopexpr->useOr = true;
saopexpr->inputcollid = key->partcollation[0]; saopexpr->inputcollid = key->partcollation[keynum];
saopexpr->args = list_make2(arg1, arg2); saopexpr->args = list_make2(arg1, arg2);
saopexpr->location = -1; saopexpr->location = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment