File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,9 @@ static relopt_kind Lsm3ReloptKind;
65
65
/* Lsm3 kooks */
66
66
static ProcessUtility_hook_type PreviousProcessUtilityHook = NULL ;
67
67
static shmem_startup_hook_type PreviousShmemStartupHook = NULL ;
68
+ #if PG_VERSION_NUM >=150000
68
69
static shmem_request_hook_type PreviousShmemRequestHook = NULL ;
70
+ #endif
69
71
static ExecutorFinish_hook_type PreviousExecutorFinish = NULL ;
70
72
71
73
/* Lsm3 GUCs */
@@ -78,8 +80,10 @@ static volatile bool Lsm3Cancel;
78
80
static void
79
81
lsm3_shmem_request (void )
80
82
{
83
+ #if PG_VERSION_NUM >=150000
81
84
if (PreviousShmemRequestHook )
82
85
PreviousShmemRequestHook ();
86
+ #endif
83
87
84
88
RequestAddinShmemSpace (hash_estimate_size (Lsm3MaxIndexes , sizeof (Lsm3DictEntry )));
85
89
RequestNamedLWLockTranche ("lsm3" , 1 );
You can’t perform that action at this time.
0 commit comments