pgsql: Remove EXTENSION_DONT_CHECK_SIZE from md.c.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove EXTENSION_DONT_CHECK_SIZE from md.c.
Date: 2024-12-14 08:51:40
Message-ID: E1tMNsB-002eyM-UV@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)anarazel(dot)de>
Discussion: https://postgr.es/m/nyj4k7yur5t27rtygvx2i2lrlp6rqfvvhoiiwx4fznynksf2et%404hj2sp42alpe

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/48c142f78d90fcdcbc0557a4bcdc4f47ec32b333

Modified Files
--------------
src/backend/storage/smgr/md.c | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2024-12-14 11:36:48 pgsql: Fix warnings about declaration of environ on MinGW.
Previous Message John Naylor 2024-12-14 02:59:05 pgsql: Fix typo