Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c9c260d

Browse filesBrowse 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
Copy full SHA for c9c260d

File tree

Expand file treeCollapse file tree

1 file changed

+1
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-4
lines changed

‎src/backend/access/heap/pruneheap.c

Copy file name to clipboardExpand all lines: src/backend/access/heap/pruneheap.c
+1-4Lines changed: 1 addition & 4 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.