Skip to content

Commit 2ac1b2b

Browse files
committed
Remove heap_hot_search().
After 71bdc99, "tableam: Add helper for indexes to check if a corresponding table tuples exist." there's no in-core user left. As there's unlikely to be an external user, and such an external user could easily be adjusted to use table_index_fetch_tuple_check(), remove heap_hot_search(). Per complaint from Peter Geoghegan Author: Andres Freund Discussion: https://postgr.es/m/CAH2-Wzn0Oq4ftJrTqRAsWy2WGjv0QrJcwoZ+yqWsF_Z5vjUBFw@mail.gmail.com
1 parent cdde886 commit 2ac1b2b

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

src/backend/access/heap/heapam.c

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,30 +1636,6 @@ heap_hot_search_buffer(ItemPointer tid, Relation relation, Buffer buffer,
16361636
return false;
16371637
}
16381638

1639-
/*
1640-
* heap_hot_search - search HOT chain for tuple satisfying snapshot
1641-
*
1642-
* This has the same API as heap_hot_search_buffer, except that the caller
1643-
* does not provide the buffer containing the page, rather we access it
1644-
* locally.
1645-
*/
1646-
bool
1647-
heap_hot_search(ItemPointer tid, Relation relation, Snapshot snapshot,
1648-
bool *all_dead)
1649-
{
1650-
bool result;
1651-
Buffer buffer;
1652-
HeapTupleData heapTuple;
1653-
1654-
buffer = ReadBuffer(relation, ItemPointerGetBlockNumber(tid));
1655-
LockBuffer(buffer, BUFFER_LOCK_SHARE);
1656-
result = heap_hot_search_buffer(tid, relation, buffer, snapshot,
1657-
&heapTuple, all_dead, true);
1658-
LockBuffer(buffer, BUFFER_LOCK_UNLOCK);
1659-
ReleaseBuffer(buffer);
1660-
return result;
1661-
}
1662-
16631639
/*
16641640
* heap_get_latest_tid - get the latest tid of a specified tuple
16651641
*

src/include/access/heapam.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ extern bool heap_fetch(Relation relation, Snapshot snapshot,
132132
extern bool heap_hot_search_buffer(ItemPointer tid, Relation relation,
133133
Buffer buffer, Snapshot snapshot, HeapTuple heapTuple,
134134
bool *all_dead, bool first_call);
135-
extern bool heap_hot_search(ItemPointer tid, Relation relation,
136-
Snapshot snapshot, bool *all_dead);
137135

138136
extern void heap_get_latest_tid(Relation relation, Snapshot snapshot,
139137
ItemPointer tid);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy