Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2ac1b2b

Browse files
committed
Remove heap_hot_search().
After71bdc99, "tableam: Add helper for indexes to check if acorresponding table tuples exist." there's no in-core user left. Asthere's unlikely to be an external user, and such an external usercould easily be adjusted to use table_index_fetch_tuple_check(),remove heap_hot_search().Per complaint from Peter GeogheganAuthor: Andres FreundDiscussion:https://postgr.es/m/CAH2-Wzn0Oq4ftJrTqRAsWy2WGjv0QrJcwoZ+yqWsF_Z5vjUBFw@mail.gmail.com
1 parentcdde886 commit2ac1b2b

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(ItemPointertid,Relationrelation,Snapshotsnapshot,
1648-
bool*all_dead)
1649-
{
1650-
boolresult;
1651-
Bufferbuffer;
1652-
HeapTupleDataheapTuple;
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-
returnresult;
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
externboolheap_hot_search_buffer(ItemPointertid,Relationrelation,
133133
Bufferbuffer,Snapshotsnapshot,HeapTupleheapTuple,
134134
bool*all_dead,boolfirst_call);
135-
externboolheap_hot_search(ItemPointertid,Relationrelation,
136-
Snapshotsnapshot,bool*all_dead);
137135

138136
externvoidheap_get_latest_tid(Relationrelation,Snapshotsnapshot,
139137
ItemPointertid);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp