It is already compatible with psycopg 2.5, thanks to @dvarrazzo