Partkey's collation stored in RelOptInfo->part_scheme, and I use it to fix the bug.The attachment is my solution!
pgsql-bugs by date:
Соглашаюсь с условиями обработки персональных данных