Skip to content

Commit e57e04d

Browse files
authored
Merge pull request #242 from postgrespro/PGPRO-5902
Reset cache at start and at finish ATX transaction (for v10-v12)
2 parents 7d0b189 + 8ffc722 commit e57e04d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pg_pathman.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ estimate_paramsel_using_prel(const PartRelationInfo *prel, int strategy)
281281
else return 1.0;
282282
}
283283

284-
#if defined(PGPRO_EE) && PG_VERSION_NUM >= 130000
284+
#if defined(PGPRO_EE) && PG_VERSION_NUM >= 100000
285285
/*
286286
* Reset cache at start and at finish ATX transaction
287287
*/
@@ -357,7 +357,7 @@ _PG_init(void)
357357
init_partition_router_static_data();
358358
init_partition_overseer_static_data();
359359

360-
#if defined(PGPRO_EE) && PG_VERSION_NUM >= 130000
360+
#if defined(PGPRO_EE) && PG_VERSION_NUM >= 100000
361361
/* Callbacks for reload relcache for ATX transactions */
362362
RegisterXactCallback(pathman_xact_cb, NULL);
363363
#endif

0 commit comments

Comments
 (0)