I committed this with fixes for those issues, plus I renamed the macro to partition_bound_accepts_nulls, which I think is more clear.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных