Skip to content

Commit 949d5a1

Browse files
committed
get rid of warnings in postgres_fdw
1 parent 35a5b2f commit 949d5a1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

contrib/postgres_fdw/connection.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,8 @@ pgfdw_xact_callback(XactEvent event, void *arg)
588588
/* Commit all remote transactions during pre-commit */
589589
do_sql_send_command(entry->conn, "COMMIT TRANSACTION");
590590
continue;
591-
case XACT_EVENT_PRE_PREPARE:
592591

592+
case XACT_EVENT_PRE_PREPARE:
593593
/*
594594
* We disallow remote transactions that modified anything,
595595
* since it's not very reasonable to hold them open until
@@ -603,6 +603,7 @@ pgfdw_xact_callback(XactEvent event, void *arg)
603603
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
604604
errmsg("cannot prepare a transaction that modified remote tables")));
605605
break;
606+
606607
case XACT_EVENT_PARALLEL_COMMIT:
607608
case XACT_EVENT_COMMIT:
608609
case XACT_EVENT_PREPARE:
@@ -630,6 +631,7 @@ pgfdw_xact_callback(XactEvent event, void *arg)
630631
entry->have_prep_stmt = false;
631632
entry->have_error = false;
632633
break;
634+
633635
case XACT_EVENT_PARALLEL_ABORT:
634636
case XACT_EVENT_ABORT:
635637
/* Assume we might have lost track of prepared statements */
@@ -653,6 +655,12 @@ pgfdw_xact_callback(XactEvent event, void *arg)
653655
entry->have_error = false;
654656
}
655657
break;
658+
659+
case XACT_EVENT_START:
660+
case XACT_EVENT_ABORT_PREPARED:
661+
case XACT_EVENT_COMMIT_PREPARED:
662+
break;
663+
656664
}
657665
}
658666

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy