dolphin: add null first policy api

This commit is contained in:
wuyuechuan
2024-06-25 19:50:49 +08:00
committed by jinyao418
parent b42d634974
commit ca44bc145f
9 changed files with 75 additions and 57 deletions

View File

@ -473,6 +473,15 @@ extern void DestroyPartitionMap(PartitionMap* partMap);
extern bool trySearchFakeReationForPartitionOid(HTAB** fakeRels, MemoryContext cxt, Relation rel, Oid partOid,
int partitionno, Relation* fakeRelation, Partition* partition, LOCKMODE lmode, bool checkSubPart = true);
#ifndef FRONTEND
typedef bool (*nullsMinimalPolicy)();
extern inline bool CheckPluginNullsPolicy()
{
return DB_IS_CMPT(B_FORMAT) && (u_sess->hook_cxt.nullsMinimalPolicyHook != NULL ?
((nullsMinimalPolicy)(u_sess->hook_cxt.nullsMinimalPolicyHook))() : false);
}
#endif
/* partitoin map copy functions */
extern ListPartitionMap *CopyListPartitionMap(ListPartitionMap *src_lpm);
/* more! other hash/range and its underlaying element data structores will add here later */