If there is open large object resource on the connection, do not close the connection before closing all large object resources.
pg_close() ne ferme pas les connexions persistantes ouvertes avec pg_pconnect().