If this approach makes sense, I can write up a formal patch along with the appropriate regression test.
pgsql-bugs by date:
Соглашаюсь с условиями обработки персональных данных