Compatablity with other psycopg2 implementations