@@ -1040,6 +1040,11 @@ pgfdw_reject_incomplete_xact_state_change(ConnCacheEntry *entry)
1040
1040
* Cancel the currently-in-progress query (whose query text we do not have)
1041
1041
* and ignore the result. Returns true if we successfully cancel the query
1042
1042
* and discard any pending result, and false if not.
1043
+ *
1044
+ * It's not a huge problem if we throw an ERROR here, but if we get into error
1045
+ * recursion trouble, we'll end up slamming the connection shut, which will
1046
+ * necessitate failing the entire toplevel transaction even if subtransactions
1047
+ * were used. Try to use WARNING where we can.
1043
1048
*/
1044
1049
static bool
1045
1050
pgfdw_cancel_query (PGconn * conn )
@@ -1087,6 +1092,11 @@ pgfdw_cancel_query(PGconn *conn)
1087
1092
* If the query is executed successfully but returns an error, the return
1088
1093
* value is true if and only if ignore_errors is set. If the query can't be
1089
1094
* sent or times out, the return value is false.
1095
+ *
1096
+ * It's not a huge problem if we throw an ERROR here, but if we get into error
1097
+ * recursion trouble, we'll end up slamming the connection shut, which will
1098
+ * necessitate failing the entire toplevel transaction even if subtransactions
1099
+ * were used. Try to use WARNING where we can.
1090
1100
*/
1091
1101
static bool
1092
1102
pgfdw_exec_cleanup_query (PGconn * conn , const char * query , bool ignore_errors )
@@ -1133,11 +1143,6 @@ pgfdw_exec_cleanup_query(PGconn *conn, const char *query, bool ignore_errors)
1133
1143
* be a query that was initiated as part of transaction abort to get the remote
1134
1144
* side back to the appropriate state.
1135
1145
*
1136
- * It's not a huge problem if we throw an ERROR here, but if we get into error
1137
- * recursion trouble, we'll end up slamming the connection shut, which will
1138
- * necessitate failing the entire toplevel transaction even if subtransactions
1139
- * were used. Try to use WARNING where we can.
1140
- *
1141
1146
* endtime is the time at which we should give up and assume the remote
1142
1147
* side is dead. Returns true if the timeout expired, otherwise false.
1143
1148
* Sets *result except in case of a timeout.
0 commit comments