Oops, as it happens I had an error in my program logic and pg_conn was actually true.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных