Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit db83c70

Browse files
committed
[PGPRO-7287] New PgproRegisterXactCallback to filter by event kind
Tags: pg_pathman
1 parent 7a24403 commit db83c70

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/pg_pathman.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,13 @@ _PG_init(void)
368368
init_partition_overseer_static_data();
369369

370370
#if defined(PGPRO_EE) && PG_VERSION_NUM >= 100000
371+
#if PG_VERSION_NUM >= 150000
371372
/* Callbacks for reload relcache for ATX transactions */
373+
PgproRegisterXactCallback(pathman_xact_cb, NULL, XACT_EVENT_KIND_VANILLA | XACT_EVENT_KIND_ATX);
374+
#else
372375
RegisterXactCallback(pathman_xact_cb, NULL);
373376
#endif
377+
#endif
374378
}
375379

376380
#if PG_VERSION_NUM >= 150000 /* for commit 4f2400cb3f10 */

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /