Skip to content

Commit 92f1126

Browse files
committed
remove #if instruction
1 parent 006850e commit 92f1126

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

init.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,8 @@ create_relations_hashtable()
262262
/* Already exists, recreate */
263263
if (relations != NULL)
264264
hash_destroy(relations);
265-
#if PG_VERSION_NUM >= 90600
266-
relations = ShmemInitHash("Partitioning relation info", 1024, &ctl, HASH_ELEM | HASH_BLOBS);
267-
#else
265+
268266
relations = ShmemInitHash("Partitioning relation info", 1024, 1024, &ctl, HASH_ELEM | HASH_BLOBS);
269-
#endif
270267
}
271268

272269
/*
@@ -562,13 +559,8 @@ create_range_restrictions_hashtable()
562559
memset(&ctl, 0, sizeof(ctl));
563560
ctl.keysize = sizeof(RelationKey);
564561
ctl.entrysize = sizeof(RangeRelation);
565-
#if PG_VERSION_NUM >= 90600
566-
range_restrictions = ShmemInitHash("pg_pathman range restrictions",
567-
1024, &ctl, HASH_ELEM | HASH_BLOBS);
568-
#else
569562
range_restrictions = ShmemInitHash("pg_pathman range restrictions",
570563
1024, 1024, &ctl, HASH_ELEM | HASH_BLOBS);
571-
#endif
572564
}
573565

574566
/*

pg_pathman.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,6 @@ handle_modification_query(Query *parse)
344344
static void
345345
pathman_shmem_startup(void)
346346
{
347-
348347
/* Allocate shared memory objects */
349348
LWLockAcquire(AddinShmemInitLock, LW_EXCLUSIVE);
350349
init_dsm_config();

0 commit comments

Comments
 (0)