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

Commit c7e5586

Browse files
committed
[PGPRO-7287] New PgproRegisterXactCallback to filter by event kind
Tags: pg_variables
1 parent d7f2f1a commit c7e5586

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pg_variables.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2951,7 +2951,11 @@ _PG_init(void)
29512951
NULL,
29522952
NULL);
29532953

2954+
#if defined(PGPRO_EE) && (PG_VERSION_NUM >= 150000)
2955+
PgproRegisterXactCallback(pgvTransCallback, NULL, XACT_EVENT_KIND_VANILLA | XACT_EVENT_KIND_ATX);
2956+
#else
29542957
RegisterXactCallback(pgvTransCallback, NULL);
2958+
#endif
29552959
RegisterSubXactCallback(pgvSubTransCallback, NULL);
29562960

29572961
/* Install hooks. */

0 commit comments

Comments
 (0)