Simplified the code and docs, and rewrote the example with more prose instead of PL/pgSQL, which unfortunately made it longer, although it could be truncated. Not really sure what's best...
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных