Fixed in https://github.com/sunlightlabs/psycopg2-ctypes/commit/d30d4bdfe41f5ff9765594a9a59265faad0f05a2 which should be merged in.