It turns out ODBC was doing some traces on my queries. I uninstalledand reinstalled the Postgres driver and turned off tracing.