Q.3. pg_resetxlog renamed topg_resetwal
Postgres Pro 9.6 and below provided a command namedpg_resetxlog to reset the write-ahead-log (WAL) files. This command was renamed topg_resetwal, seepg_resetwal for documentation ofpg_resetwal and seethe release notes for PostgreSQL 10 for details on this change.