@@ -1048,6 +1048,11 @@ pgfdw_reject_incomplete_xact_state_change(ConnCacheEntry *entry)
1048
1048
* Cancel the currently-in-progress query (whose query text we do not have)
1049
1049
* and ignore the result. Returns true if we successfully cancel the query
1050
1050
* and discard any pending result, and false if not.
1051
+ *
1052
+ * It's not a huge problem if we throw an ERROR here, but if we get into error
1053
+ * recursion trouble, we'll end up slamming the connection shut, which will
1054
+ * necessitate failing the entire toplevel transaction even if subtransactions
1055
+ * were used. Try to use WARNING where we can.
1051
1056
*/
1052
1057
static bool
1053
1058
pgfdw_cancel_query (PGconn * conn )
@@ -1095,6 +1100,11 @@ pgfdw_cancel_query(PGconn *conn)
1095
1100
* If the query is executed successfully but returns an error, the return
1096
1101
* value is true if and only if ignore_errors is set. If the query can't be
1097
1102
* sent or times out, the return value is false.
1103
+ *
1104
+ * It's not a huge problem if we throw an ERROR here, but if we get into error
1105
+ * recursion trouble, we'll end up slamming the connection shut, which will
1106
+ * necessitate failing the entire toplevel transaction even if subtransactions
1107
+ * were used. Try to use WARNING where we can.
1098
1108
*/
1099
1109
static bool
1100
1110
pgfdw_exec_cleanup_query (PGconn * conn , const char * query , bool ignore_errors )
@@ -1141,11 +1151,6 @@ pgfdw_exec_cleanup_query(PGconn *conn, const char *query, bool ignore_errors)
1141
1151
* be a query that was initiated as part of transaction abort to get the remote
1142
1152
* side back to the appropriate state.
1143
1153
*
1144
- * It's not a huge problem if we throw an ERROR here, but if we get into error
1145
- * recursion trouble, we'll end up slamming the connection shut, which will
1146
- * necessitate failing the entire toplevel transaction even if subtransactions
1147
- * were used. Try to use WARNING where we can.
1148
- *
1149
1154
* endtime is the time at which we should give up and assume the remote
1150
1155
* side is dead. Returns true if the timeout expired, otherwise false.
1151
1156
* Sets *result except in case of a timeout.
0 commit comments