Justin Pryzby <pry...@telsasoft.com> writes: > I hit this assertion while pg_restoring data into a v16 instance. > postgresql16-server-16-alpha_20230417_PGDG.rhel7.x86_64
> wal_level=minimal and pg_dump --single-transaction both seem to be > required to hit the issue. Hmm. I wonder if log_newpages() is confused here: XLogEnsureRecordSpace(XLR_MAX_BLOCK_ID - 1, 0); Why is XLR_MAX_BLOCK_ID - 1 enough, rather than XLR_MAX_BLOCK_ID? regards, tom lane