Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitc9c260d

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 parentc330842 commitc9c260d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines 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
typedefstruct
3131
{
32-
Relationrel;
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)

[8]ページ先頭

©2009-2025 Movatter.jp