pgsql: Rename register_unlink_segment() to register_unlink_tombstone()

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Rename register_unlink_segment() to register_unlink_tombstone()
Date: 2026-07-07 17:08:46
Message-ID: E1wh9Hp-0001d0-2h@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Rename register_unlink_segment() to register_unlink_tombstone()

Only "tombstone" files (first segment of main fork) are unlinked after
checkpoints, so rename the function and remove the extra arguments to
make that more clear.

Additionally, add an assertion in mdunlinkfiletag() that the FileTag
only contains expected values.

Author: Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>
Reviewed-by: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/CAEze2WjfP95SL_Hsu7GzYXLnQyEsT49zOnNvbY_mBLCFiQra1g@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/650bb73c137ccdea3a502775e08482731cc799ba

Modified Files
--------------
src/backend/storage/smgr/md.c | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2026-07-07 18:21:40 pgsql: Fix gistkillitems for GiST root page
Previous Message Noah Misch 2026-07-07 16:53:12 pgsql: Fix pg_dump ACL minimization for PROPERTY GRAPH.