Sorry, should have added tests and docs already. I will add them in the next version of the patch. Thanks for willing to review.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных