Remove EXTENSION_DONT_CHECK_SIZE from md.c.

Thomas Munro <tmunro@postgresql.org>

Commit: 48c142f78d90fcdcbc0557a4bcdc4f47ec32b333
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2024-12-14T08:52:10Z
Releases: 18.0
Remove EXTENSION_DONT_CHECK_SIZE from md.c.

Commits 7bb3102c and 3eb77eba removed the only user of the
EXTENSION_DONT_CHECK_SIZE flag, which had previously been required to
checkpoint truncated relations.  Since 7bb3102c, segments have been
opened directly for synchronization without calling _mdfd_getseg(), so
it doesn't need a mode that tolerates non-final short segments.  Remove
the redundant flag and associated comments.

Reported-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/nyj4k7yur5t27rtygvx2i2lrlp6rqfvvhoiiwx4fznynksf2et%404hj2sp42alpe

Files

PathChange+/−
src/backend/storage/smgr/md.c modified +4 −14

Discussion