I found a bug that causes one of the differences. Wrong counter is incrementedin ExtendBufferedRelLocal(). The attached patch fixes it and should be appliedto REL_16_STABLE and master.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных