Thanks for the quick fix. I was able to reproduce the assertion failure and to confirm that it's resolved with the patch. Looks good to me.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных