Rip out hppo stuff.
authorRobert Haas <[email protected]>
Tue, 11 Oct 2011 12:22:09 +0000 (08:22 -0400)
committerRobert Haas <[email protected]>
Fri, 14 Oct 2011 18:38:15 +0000 (14:38 -0400)
src/backend/access/heap/pruneheap.c

index 510bb02b3ca807f1fb80d160b824c048795d6602..0806d96f9e5e6d5dc5536d5703158fd619c7b7ba 100644 (file)
@@ -53,8 +53,6 @@ static void heap_prune_record_redirect(PruneState *prstate,
 static void heap_prune_record_dead(PruneState *prstate, OffsetNumber offnum);
 static void heap_prune_record_unused(PruneState *prstate, OffsetNumber offnum);
 
-uint64 hppo1, hppo2, hppo3, hppo4, hppo5;
-
 /*
  * Optionally prune and repair fragmentation in the specified page.
  *
@@ -80,7 +78,6 @@ heap_page_prune_opt(Relation relation, Buffer buffer)
         * If the page isn't hinted to contain something prunable, or if the hint
         * is for an XID that's still too new, exit quickly.
         */
-       ++hppo1;
        if (!TransactionIdIsValid(PagePruneXid(page))
                || !TransactionIdPrecedes(PagePruneXid(page), TransactionXmin))
                return;
@@ -92,7 +89,6 @@ heap_page_prune_opt(Relation relation, Buffer buffer)
         */
        if (RecoveryInProgress())
                return;
-       ++hppo2;
 
        /*
         * We prune when a previous UPDATE failed to find enough space on the page
@@ -116,17 +112,12 @@ heap_page_prune_opt(Relation relation, Buffer buffer)
                 * If RecentGlobalXmin is too old to prune the page, update it and
                 * recheck.
                 */
-               ++hppo3;
                if (!PageIsPrunable(page, RecentGlobalXmin))
                {
                        RecentGlobalXmin = GetOldestXmin(true, false);
                        if (!PageIsPrunable(page, RecentGlobalXmin))
-                       {
-                               ++hppo4;
                                return;
-                       }
                }
-               ++hppo5;
 
                /* OK, try to get exclusive buffer lock */
                if (!ConditionalLockBufferForCleanup(buffer))