diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-03-20 10:13:42 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-03-20 10:13:42 +0200 |
commit | c9c260decd239159277c1baad9d929ebcdf2491e (patch) | |
tree | 83ae6e2a30345df0b877c0e07c193f5a161b5d44 | |
parent | c33084205a865538212b7edd99ab5de8e7220fb7 (diff) | |
download | postgresql-c9c260decd239159277c1baad9d929ebcdf2491e.tar.gz postgresql-c9c260decd239159277c1baad9d929ebcdf2491e.zip |
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
-rw-r--r-- | src/backend/access/heap/pruneheap.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/backend/access/heap/pruneheap.c b/src/backend/access/heap/pruneheap.c index 15adfdc11b2..69332b0d25c 100644 --- a/src/backend/access/heap/pruneheap.c +++ b/src/backend/access/heap/pruneheap.c @@ -29,8 +29,6 @@ /* Working data for heap_page_prune and subroutines */ typedef struct { - Relation rel; - /* tuple visibility test, initialized for the relation */ GlobalVisState *vistest; /* whether or not dead items can be set LP_UNUSED during pruning */ @@ -235,7 +233,6 @@ heap_page_prune(Relation relation, Buffer buffer, * initialize the rest of our working state. */ prstate.new_prune_xid = InvalidTransactionId; - prstate.rel = relation; prstate.vistest = vistest; prstate.mark_unused_now = mark_unused_now; prstate.snapshotConflictHorizon = InvalidTransactionId; @@ -250,7 +247,7 @@ heap_page_prune(Relation relation, Buffer buffer, presult->nnewlpdead = 0; maxoff = PageGetMaxOffsetNumber(page); - tup.t_tableOid = RelationGetRelid(prstate.rel); + tup.t_tableOid = RelationGetRelid(relation); /* * Determine HTSV for all tuples. |