I've attached an updated copy of the patch that applies cleanly to current master.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных