Remove use of sscanf in pg_upgrade, and add C comment to pg_dump

Per report from Jackie Chang