I've now pushed your fix plus that test.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных