Author: Masahiko Sawada
Discussion: https://postgr.es/m/
[email protected]
IndexBulkDeleteResult istat;
} PVIndStats;
-/* Struct for maintaining a parallel vacuum state. */
-typedef struct ParallelVacuumState
+/*
+ * Struct for maintaining a parallel vacuum state. typedef appears in vacuum.h.
+ */
+struct ParallelVacuumState
{
/* NULL for worker processes */
ParallelContext *pcxt;
char *relname;
char *indname;
PVIndVacStatus status;
-} ParallelVacuumState;
+};
static int parallel_vacuum_compute_workers(Relation *indrels, int nindexes, int nrequested,
bool *will_parallel_vacuum);