Patch attached. Still some more docs needs to be added.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных