It turns out ODBC was doing some traces on my queries. I uninstalled and reinstalled the Postgres driver and turned off tracing.
pgsql-novice by date:
Соглашаюсь с условиями обработки персональных данных