diff options
author | Andres Freund | 2020-06-24 23:26:26 +0000 |
---|---|---|
committer | Andres Freund | 2020-06-24 23:26:26 +0000 |
commit | bfbfa9d20ef9298b9cdc33a574c406c894af0079 (patch) | |
tree | 8780bb4463fdcc36c66a3a35cf099ae7e3a2138e | |
parent | 09a70b9b3191c6a0f520b074d2e09ca5848e439c (diff) |
fixup! heapam: WIP: cacheline prefetching for hot pruning.aio-before-rebase-2020-06-24
-rw-r--r-- | src/backend/access/heap/pruneheap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/heap/pruneheap.c b/src/backend/access/heap/pruneheap.c index 61ab69c7ea..d9a1d3ea18 100644 --- a/src/backend/access/heap/pruneheap.c +++ b/src/backend/access/heap/pruneheap.c @@ -221,7 +221,7 @@ heap_page_prune(Relation relation, Buffer buffer, TransactionId OldestXmin, ItemId itemid; itemid = PageGetItemId(page, offnum); - if (!ItemIdIsUsed(itemid) || ItemIdIsDead(itemid)) + if (!ItemIdIsUsed(itemid) || ItemIdIsDead(itemid) || !ItemIdHasStorage(itemid)) continue; __builtin_prefetch((HeapTupleHeader) PageGetItem(page, itemid)); |