From 8e1fae193864527c931a704bd7908e4fbc983f5c Mon Sep 17 00:00:00 2001 From: Amit Kapila Date: Thu, 23 Dec 2021 11:42:52 +0530 Subject: 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 --- src/tools/pgindent/typedefs.list | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/tools') diff --git a/src/tools/pgindent/typedefs.list b/src/tools/pgindent/typedefs.list index 98635087912..f0936054726 100644 --- a/src/tools/pgindent/typedefs.list +++ b/src/tools/pgindent/typedefs.list @@ -1306,13 +1306,8 @@ LPWSTR LSEG LUID LVPagePruneState -LVParallelIndStats -LVParallelIndVacStatus -LVParallelState LVRelState LVSavedErrInfo -LVShared -LVSharedIndStats LWLock LWLockHandle LWLockMode @@ -1775,7 +1770,10 @@ PTIterationArray PTOKEN_PRIVILEGES PTOKEN_USER PUTENVPROC +PVIndStats +PvIndVacStatus PVOID +PVShared PX_Alias PX_Cipher PX_Combo @@ -1809,6 +1807,7 @@ ParallelSlotResultHandler ParallelState ParallelTableScanDesc ParallelTableScanDescData +ParallelVacuumState ParallelWorkerContext ParallelWorkerInfo Param -- cgit v1.2.3