I wonder why the errors don't show up under 9.6.6 and only started appearing after the pg_upgrade to 10.1? Both severs naturally used the same OS environment.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных