Find the best suited version of PostgreSQL to restore a dump