File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -740,6 +740,20 @@ pgfdw_xact_callback(XactEvent event, void *arg)
740
740
HASH_SEQ_STATUS scan ;
741
741
ConnCacheEntry * entry ;
742
742
743
+ /* Do nothing for this events */
744
+ switch (event )
745
+ {
746
+ case XACT_EVENT_START :
747
+ case XACT_EVENT_POST_PREPARE :
748
+ case XACT_EVENT_COMMIT_PREPARED :
749
+ case XACT_EVENT_PRE_COMMIT_PREPARED :
750
+ case XACT_EVENT_ABORT_PREPARED :
751
+ case XACT_EVENT_COMMIT_COMMAND :
752
+ return ;
753
+ default :
754
+ break ;
755
+ }
756
+
743
757
/* Quick exit if no connections were touched in this transaction. */
744
758
if (!xact_got_connection )
745
759
return ;
@@ -902,8 +916,11 @@ pgfdw_xact_callback(XactEvent event, void *arg)
902
916
break ;
903
917
904
918
case XACT_EVENT_START :
905
- case XACT_EVENT_ABORT_PREPARED :
919
+ case XACT_EVENT_POST_PREPARE :
906
920
case XACT_EVENT_COMMIT_PREPARED :
921
+ case XACT_EVENT_PRE_COMMIT_PREPARED :
922
+ case XACT_EVENT_ABORT_PREPARED :
923
+ case XACT_EVENT_COMMIT_COMMAND :
907
924
break ;
908
925
}
909
926
}
You can’t perform that action at this time.
0 commit comments