Skip to content

Commit c9c260d

Browse files
committed
Remove unused PruneState member rel
PruneState->rel is no longer being used, so just remove it. Author: Melanie Plageman <melanieplageman@gmail.com> Discussion: https://www.postgresql.org/message-id/20240320013602.6sypr4cx6sefpemg@liskov
1 parent c330842 commit c9c260d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/backend/access/heap/pruneheap.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
/* Working data for heap_page_prune and subroutines */
3030
typedef struct
3131
{
32-
Relation rel;
33-
3432
/* tuple visibility test, initialized for the relation */
3533
GlobalVisState *vistest;
3634
/* whether or not dead items can be set LP_UNUSED during pruning */
@@ -235,7 +233,6 @@ heap_page_prune(Relation relation, Buffer buffer,
235233
* initialize the rest of our working state.
236234
*/
237235
prstate.new_prune_xid = InvalidTransactionId;
238-
prstate.rel = relation;
239236
prstate.vistest = vistest;
240237
prstate.mark_unused_now = mark_unused_now;
241238
prstate.snapshotConflictHorizon = InvalidTransactionId;
@@ -250,7 +247,7 @@ heap_page_prune(Relation relation, Buffer buffer,
250247
presult->nnewlpdead = 0;
251248

252249
maxoff = PageGetMaxOffsetNumber(page);
253-
tup.t_tableOid = RelationGetRelid(prstate.rel);
250+
tup.t_tableOid = RelationGetRelid(relation);
254251

255252
/*
256253
* Determine HTSV for all tuples.

0 commit comments

Comments
 (0)