aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/parallel.c
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2021-12-23 11:42:52 +0530
committerAmit Kapila <akapila@postgresql.org>2021-12-23 11:42:52 +0530
commit8e1fae193864527c931a704bd7908e4fbc983f5c (patch)
tree50f33193006724e680e7cd87f440f86050dded43 /src/backend/access/transam/parallel.c
parente2e1bbde46a3509c3b7e830196f4314242925247 (diff)
downloadpostgresql-8e1fae193864527c931a704bd7908e4fbc983f5c.tar.gz
postgresql-8e1fae193864527c931a704bd7908e4fbc983f5c.zip
Move parallel vacuum code to vacuumparallel.c.
This commit moves parallel vacuum related code to a new file commands/vacuumparallel.c so that any table AM supporting indexes can utilize parallel vacuum in order to call index AM callbacks (ambulkdelete and amvacuumcleanup) with parallel workers. Another reason for this refactoring is that the parallel vacuum isn't specific to heap so it doesn't make sense to keep this code in heap/vacuumlazy.c. Author: Masahiko Sawada, based on suggestion from Andres Freund Reviewed-by: Hou Zhijie, Amit Kapila, Haiying Tang Discussion: https://www.postgresql.org/message-id/20211030212101.ae3qcouatwmy7tbr%40alap3.anarazel.de
Diffstat (limited to 'src/backend/access/transam/parallel.c')
-rw-r--r--src/backend/access/transam/parallel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/parallel.c b/src/backend/access/transam/parallel.c
index bb1881f5736..ae7c7133dd4 100644
--- a/src/backend/access/transam/parallel.c
+++ b/src/backend/access/transam/parallel.c
@@ -14,7 +14,6 @@
#include "postgres.h"
-#include "access/heapam.h"
#include "access/nbtree.h"
#include "access/parallel.h"
#include "access/session.h"
@@ -25,6 +24,7 @@
#include "catalog/pg_enum.h"
#include "catalog/storage.h"
#include "commands/async.h"
+#include "commands/vacuum.h"
#include "executor/execParallel.h"
#include "libpq/libpq.h"
#include "libpq/pqformat.h"