This works the same way that bash works. Code largely plagiarized and customized from there.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных