Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3bac104

Browse files
committed
Fix request hook
1 parent efe3e12 commit 3bac104

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lsm3.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ static relopt_kind Lsm3ReloptKind;
6565
/* Lsm3 kooks */
6666
static ProcessUtility_hook_type PreviousProcessUtilityHook = NULL;
6767
static shmem_startup_hook_type PreviousShmemStartupHook = NULL;
68+
#if PG_VERSION_NUM>=150000
6869
static shmem_request_hook_type PreviousShmemRequestHook = NULL;
70+
#endif
6971
static ExecutorFinish_hook_type PreviousExecutorFinish = NULL;
7072

7173
/* Lsm3 GUCs */
@@ -78,8 +80,10 @@ static volatile bool Lsm3Cancel;
7880
static void
7981
lsm3_shmem_request(void)
8082
{
83+
#if PG_VERSION_NUM>=150000
8184
if (PreviousShmemRequestHook)
8285
PreviousShmemRequestHook();
86+
#endif
8387

8488
RequestAddinShmemSpace(hash_estimate_size(Lsm3MaxIndexes, sizeof(Lsm3DictEntry)));
8589
RequestNamedLWLockTranche("lsm3", 1);

0 commit comments

Comments
 (0)