|
PostgreSQL Source Code git master
|


Go to the source code of this file.
Data Structures | |
| struct | ParallelSlot |
| struct | ParallelSlotArray |
Typedefs | |
| typedef bool(* | ParallelSlotResultHandler) (PGresult *res, PGconn *conn, void *context) |
| typedef struct ParallelSlot | ParallelSlot |
| typedef struct ParallelSlotArray | ParallelSlotArray |
Functions | |
| static void | ParallelSlotSetHandler (ParallelSlot *slot, ParallelSlotResultHandler handler, void *context) |
| static void | ParallelSlotClearHandler (ParallelSlot *slot) |
| static void | ParallelSlotSetIdle (ParallelSlot *slot) |
| ParallelSlot * | ParallelSlotsGetIdle (ParallelSlotArray *sa, const char *dbname) |
| ParallelSlotArray * | ParallelSlotsSetup (int numslots, ConnParams *cparams, const char *progname, bool echo, const char *initcmd) |
| void | ParallelSlotsAdoptConn (ParallelSlotArray *sa, PGconn *conn) |
| void | ParallelSlotsTerminate (ParallelSlotArray *sa) |
| bool | ParallelSlotsWaitCompletion (ParallelSlotArray *sa) |
| bool | TableCommandResultHandler (PGresult *res, PGconn *conn, void *context) |
Definition at line 18 of file parallel_slot.h.
|
inlinestatic |
Definition at line 55 of file parallel_slot.h.
References fb(), ParallelSlot::handler, and ParallelSlot::handler_context.
Referenced by ParallelSlotSetIdle().
|
extern |
Definition at line 459 of file parallel_slot.c.
References conn, disconnectDatabase(), and find_unconnected_slot().
Referenced by main(), reindex_one_database(), and vacuum_one_database().
|
inlinestatic |
Definition at line 47 of file parallel_slot.h.
References ParallelSlot::handler, and ParallelSlot::handler_context.
Referenced by main(), reindex_one_database(), and vacuum_one_database().
|
inlinestatic |
Definition at line 62 of file parallel_slot.h.
References ParallelSlot::inUse, and ParallelSlotClearHandler().
Referenced by ParallelSlotsWaitCompletion(), run_vacuum_command(), and wait_on_slots().
|
extern |
Definition at line 370 of file parallel_slot.c.
References Assert, connect_slot(), dbname, disconnectDatabase(), fb(), find_any_idle_slot(), find_matching_idle_slot(), find_unconnected_slot(), and wait_on_slots().
Referenced by main(), reindex_one_database(), and vacuum_one_database().
|
extern |
Definition at line 427 of file parallel_slot.c.
References Assert, fb(), palloc0(), and progname.
Referenced by main(), reindex_one_database(), and vacuum_one_database().
|
extern |
Definition at line 478 of file parallel_slot.c.
References conn, disconnectDatabase(), fb(), and i.
Referenced by main(), reindex_one_database(), and vacuum_one_database().
|
extern |
Definition at line 500 of file parallel_slot.c.
References consumeQueryResult(), fb(), i, and ParallelSlotSetIdle().
Referenced by main(), reindex_one_database(), and vacuum_one_database().
Definition at line 538 of file parallel_slot.c.
References Assert, conn, ERRCODE_UNDEFINED_TABLE, fb(), PG_DIAG_SQLSTATE, pg_log_error, PGRES_COMMAND_OK, PQclear, PQdb(), PQerrorMessage(), PQresultErrorField, and PQresultStatus.
Referenced by reindex_one_database(), and vacuum_one_database().