Jose Velasquez

Generation

generate functionSun, 18 Jun 2023

pgpool 4.2.4 recovery_node

void recovery_node(PGXCNodeHandle * handle, int node, int *conn_count) { if (handle->state == DN_CONNECTION_STATE_QUERY) { /* * Finish query at the node before connecting to the next one, * otherwise we may not be able to reuse the connection to the same * node in a connection pool. */ (void) handle->pgxc_node_receive(0, NULL); handle->clear_error(); } handle->state = DN_CONNECTION_STATE_IDLE; /* * If there is a connection failure in the middle of transaction, * connection is dropped by the node and we do not need to send * ROLLBACK. * * Otherwise, in case some error occurs during transaction * we should rollback the transaction to keep the same state * on the remote node as the one we have locally. * It is also required as otherwise we may not be able to reuse the * connection in

Questions about programming?Chat with your personal AI assistant