Fix compilation error introduced by commit 8e1fae1938.
authorAmit Kapila <akapila@postgresql.org>
Thu, 23 Dec 2021 07:14:45 +0000 (12:44 +0530)
committerAmit Kapila <akapila@postgresql.org>
Thu, 23 Dec 2021 07:16:27 +0000 (12:46 +0530)
Author: Masahiko Sawada
Discussion: https://postgr.es/m/E1n0HSK-00048l-RE@gemulon.postgresql.org

src/backend/commands/vacuumparallel.c

index 5dd70c5273469ef446e2b52e9c912ee9875c47a4..0d61c8ec74aba9febfdd3ba97f63bada5b42a39f 100644 (file)
@@ -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);