Adjust pg_upgrade for move of username lookup functions to /common