It looks like the bug reporting form destroyed the patch. I've attached it again here. Nathan
pgsql-bugs by date:
Соглашаюсь с условиями обработки персональных данных