"Diez Roggisch" <diez(dot)roggisch(at)ableton(dot)com> writes:
> Description: multi threaded queries corrupt client when server
> debugging levels are hi
Most likely you need to report this to the psycopg authors, not here.
I suspect the problem boils down to non-thread-safety in whatever code
psycopg uses to handle notice messages returned by libpq.
regards, tom lane