What about the attached patch based on yours?
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных