hot data precache fix compile problem

This commit is contained in:
peitingwei 2023-03-30 10:58:09 +08:00
parent 7c34503e33
commit 6dc26f4fc2
3 changed files with 5 additions and 5 deletions

View File

@ -82,7 +82,7 @@ BitmapHeapNext(BitmapHeapScanState *node)
ParallelBitmapHeapState *pstate = node->pstate;
dsa_area *dsa = node->ss.ps.state->es_query_dsa;
preCacheIndexNode = ((BitmapIndexScanState *)((PlanState *)(node))->lefttree)->biss_ScanDesc->indexRelation->rd_node->relNode;
preCacheIndexNode = ((BitmapIndexScanState *)((PlanState *)(node))->lefttree)->biss_ScanDesc->indexRelation->rd_node.relNode;
/*
* extract necessary information from index scan node

View File

@ -88,7 +88,7 @@ IndexNext(IndexScanState *node)
TupleTableSlot *slot;
/* set preCacheIndexNode */
preCacheIndexNode = node->iss_RelationDesc->rd_node->relNode;
preCacheIndexNode = node->iss_RelationDesc->rd_node.relNode;
/*
* extract necessary information from index scan node

View File

@ -792,10 +792,10 @@ ReadBufferExtended(Relation reln, ForkNumber forkNum, BlockNumber blockNum,
*/
pgstat_count_buffer_read(reln);
/* precache index */
if (isPreCacheIndex && preCacheIndexNode == reln->rd_node->relNode)
if (isPreCacheIndex && preCacheIndexNode == reln->rd_node.relNode)
{
BlockNumber precacheblocks;
precacheblocks = smgrnblocks(eln->rd_smgr, forkNum);
precacheblocks = smgrnblocks(reln->rd_smgr, forkNum);
for(BlockNumber i=0; i < precacheblocks; i++)
{
ReadBuffer_common(reln->rd_smgr, reln->rd_rel->relpersistence, forkNum, i, mode, strategy, &hit);
@ -934,7 +934,7 @@ ReadBuffer_common(SMgrRelation smgr, char relpersistence, ForkNumber forkNum,
{
if (isPreCacheIndex)
{
if (preCacheIndexNode == bufHdr->tag->rnode->relNode)
if (preCacheIndexNode == bufHdr->tag.rnode.relNode)
{
bufHdr->isPreCacheEscape=true;
}