Restore smgrtruncate() prototype in back-branches.
authorThomas Munro <[email protected]>
Tue, 7 Jan 2025 18:50:30 +0000 (07:50 +1300)
committerThomas Munro <[email protected]>
Tue, 7 Jan 2025 21:48:57 +0000 (10:48 +1300)
commita1d17a8947311cbee9100ceb2b1c43a8770d6d32
tree9726876ea150a8887f8710c5b33f4aa971bcc581
parent20a344bce8949f542eb25360fe69f14aa9a05b1b
Restore smgrtruncate() prototype in back-branches.

It's possible that external code is calling smgrtruncate().  Any
external callers might like to consider the recent changes to
RelationTruncate(), but commit 38c579b0 should not have changed the
function prototype in the back-branches, per ABI stability policy.

Restore smgrtruncate()'s traditional argument list in the back-branches,
but make it a wrapper for a new function smgrtruncate2().  The three
callers in core can use smgrtruncate2() directly.  In master (18-to-be),
smgrtruncate2() is effectively renamed to smgrtruncate(), so this wart
is cleaned up.

Reviewed-by: Michael Paquier <[email protected]>
Discussion: https://postgr.es/m/CA%2BhUKG%2BThae6x6%2BjmQiuALQBT2Ae1ChjMh1%3DkMvJ8y_SBJZrvA%40mail.gmail.com
contrib/pg_visibility/pg_visibility.c
src/backend/catalog/storage.c
src/backend/storage/smgr/smgr.c
src/include/storage/smgr.h