After thinking a bit more, I've gone back to thinking this is a bug in psycopg2 and not in the proxy code.
After thinking a bit more, I've gone back to thinking this is a bug in psycopg2 and not in the proxy code.