Hi,
> Major version upgrade to 15.7 or 16.3 is failing on pg_restore step with following error,
> [...]
To clarify, did you use pg_dump from _newer_ version of PostgreSQL as
recommended[1] ?
"""
It is recommended that you use the pg_dump and pg_dumpall programs
from the newer version of PostgreSQL, to take advantage of
enhancements that might have been made in these programs. Current
releases of the dump programs can read data from any server version
back to 9.2.
"""
[1]: https://www.postgresql.org/docs/current/upgrading.html
--
Best regards,
Aleksander Alekseev