Nice test case. I pushed commit ce1663cdcdbd9bf15c81570277f70571b3727dd3, including your test case, to fix this.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных