Fixes to removecrapreleases for pgsql.