12 #ifndef PARALLEL_SLOT_H
13 #define PARALLEL_SLOT_H
#define FLEXIBLE_ARRAY_MEMBER
static void PGresult * res
ParallelSlot * ParallelSlotsGetIdle(ParallelSlotArray *sa, const char *dbname)
bool ParallelSlotsWaitCompletion(ParallelSlotArray *sa)
bool(* ParallelSlotResultHandler)(PGresult *res, PGconn *conn, void *context)
ParallelSlotArray * ParallelSlotsSetup(int numslots, ConnParams *cparams, const char *progname, bool echo, const char *initcmd)
bool TableCommandResultHandler(PGresult *res, PGconn *conn, void *context)
struct ParallelSlotArray ParallelSlotArray
static void ParallelSlotSetHandler(ParallelSlot *slot, ParallelSlotResultHandler handler, void *context)
static void ParallelSlotClearHandler(ParallelSlot *slot)
void ParallelSlotsTerminate(ParallelSlotArray *sa)
void ParallelSlotsAdoptConn(ParallelSlotArray *sa, PGconn *conn)
struct ParallelSlot ParallelSlot
ParallelSlot slots[FLEXIBLE_ARRAY_MEMBER]
ParallelSlotResultHandler handler