Attached is a patch which would print the recursion depth fortoast_insert_or_update() before PANICing the server to help usexamine the core.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных