Remove duplicate code in heap_prune_chain()
authorSimon Riggs <[email protected]>
Sun, 7 Dec 2014 23:44:37 +0000 (08:44 +0900)
committerSimon Riggs <[email protected]>
Sun, 7 Dec 2014 23:44:37 +0000 (08:44 +0900)
No need to set tuple tableOid twice

Jim Nasby

src/backend/access/heap/pruneheap.c

index e4561bc3a27d6bd44c4da4ebdc02fafa64d4b7c1..2c0912878bb572623906bd83ebfc9bc0b7863b69 100644 (file)
@@ -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))