From c2707547193a1e1f1016552cc92f33e8f0d296d4 Mon Sep 17 00:00:00 2001
From: Simon Riggs <simon@2ndQuadrant.com>
Date: Mon, 8 Dec 2014 08:44:37 +0900
Subject: [PATCH] Remove duplicate code in heap_prune_chain()

No need to set tuple tableOid twice

Jim Nasby
---
 src/backend/access/heap/pruneheap.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/backend/access/heap/pruneheap.c b/src/backend/access/heap/pruneheap.c
index e4561bc3a27..2c0912878bb 100644
--- a/src/backend/access/heap/pruneheap.c
+++ b/src/backend/access/heap/pruneheap.c
@@ -372,7 +372,6 @@ heap_prune_chain(Relation relation, Buffer buffer, OffsetNumber rootoffnum,
 
 		tup.t_data = htup;
 		tup.t_len = ItemIdGetLength(rootlp);
-		tup.t_tableOid = RelationGetRelid(relation);
 		ItemPointerSet(&(tup.t_self), BufferGetBlockNumber(buffer), rootoffnum);
 
 		if (HeapTupleHeaderIsHeapOnly(htup))
-- 
GitLab