While reading through the patch I thought it would be better to keep MODULUS and REMAINDER in caps, if CREATE TABLE was in caps too in order to highlight that these are "keywords" for hash partition.
Also updated some of the documentation.
Thanks a lot for the patch, included in the attached version.
V20 patch passes make check-world, and my testing (typical 64 partitions, and various ATTACH/DETACH scenarios).