diff options
author | Amit Kapila | 2021-12-23 07:14:45 +0000 |
---|---|---|
committer | Amit Kapila | 2021-12-23 07:16:27 +0000 |
commit | 94226d4506e66d6e7cbf4b391f1e7393c1962841 (patch) | |
tree | 175fd6371a77a4a906a4ab1cd86086a6ef25a0ea | |
parent | 8e1fae193864527c931a704bd7908e4fbc983f5c (diff) |
Fix compilation error introduced by commit 8e1fae1938.
Author: Masahiko Sawada
Discussion: https://postgr.es/m/[email protected]
-rw-r--r-- | src/backend/commands/vacuumparallel.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/backend/commands/vacuumparallel.c b/src/backend/commands/vacuumparallel.c index 5dd70c5273..0d61c8ec74 100644 --- a/src/backend/commands/vacuumparallel.c +++ b/src/backend/commands/vacuumparallel.c @@ -137,8 +137,10 @@ typedef struct PVIndStats 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; @@ -195,7 +197,7 @@ typedef struct ParallelVacuumState char *relname; char *indname; PVIndVacStatus status; -} ParallelVacuumState; +}; static int parallel_vacuum_compute_workers(Relation *indrels, int nindexes, int nrequested, bool *will_parallel_vacuum); |