/* Now we can remove the hash table entry */
hash_search(prepared_queries, entry->stmt_name, HASH_REMOVE, NULL);
#ifdef XCP
+ DropDatanodeStatement(entry->stmt_name);
if (entry->use_resowner)
ResourceOwnerForgetPreparedStmt(CurTransactionResourceOwner,
entry->stmt_name);
(errcode(ERRCODE_INTERNAL_ERROR),
errmsg("Failed to close Datanode statement")));
}
+ PGXCNodeSetConnectionState(connections[i], DN_CONNECTION_STATE_CLOSE);
}
InitResponseCombiner(&combiner, conn_count, COMBINE_TYPE_NONE);
{
if (pgxc_node_receive(conn_count, connections, NULL))
{
- for (i = 0; i <= conn_count; i++)
+ for (i = 0; i < conn_count; i++)
PGXCNodeSetConnectionState(connections[i],
DN_CONNECTION_STATE_ERROR_FATAL);