From c8be3a369b7a56b98dfbe0deb45251e7659e5482 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Tue, 23 Jan 2024 12:47:26 +0200 Subject: [PATCH] Include generic_xlog.h directly in the .c files where it's needed There are no references to anything that's in generic_xlog.h in the header files. --- src/hnsw.h | 1 - src/hnswbuild.c | 1 + src/hnswinsert.c | 1 + src/hnswutils.c | 2 ++ src/hnswvacuum.c | 1 + src/ivfinsert.c | 1 + src/ivfutils.c | 1 + src/ivfvacuum.c | 1 + 8 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/hnsw.h b/src/hnsw.h index 4678c8b..dcd7d28 100644 --- a/src/hnsw.h +++ b/src/hnsw.h @@ -4,7 +4,6 @@ #include "postgres.h" #include "access/genam.h" -#include "access/generic_xlog.h" #include "access/parallel.h" #include "lib/pairingheap.h" #include "nodes/execnodes.h" diff --git a/src/hnswbuild.c b/src/hnswbuild.c index 3fbb78d..f2c6509 100644 --- a/src/hnswbuild.c +++ b/src/hnswbuild.c @@ -42,6 +42,7 @@ #include "access/table.h" #include "access/tableam.h" #include "access/xact.h" +#include "access/xloginsert.h" #include "catalog/index.h" #include "commands/progress.h" #include "hnsw.h" diff --git a/src/hnswinsert.c b/src/hnswinsert.c index 7d43230..b00be17 100644 --- a/src/hnswinsert.c +++ b/src/hnswinsert.c @@ -2,6 +2,7 @@ #include +#include "access/generic_xlog.h" #include "hnsw.h" #include "storage/bufmgr.h" #include "storage/lmgr.h" diff --git a/src/hnswutils.c b/src/hnswutils.c index e219530..6e70363 100644 --- a/src/hnswutils.c +++ b/src/hnswutils.c @@ -2,10 +2,12 @@ #include +#include "access/generic_xlog.h" #include "hnsw.h" #include "lib/pairingheap.h" #include "storage/bufmgr.h" #include "utils/datum.h" +#include "utils/rel.h" #include "vector.h" #if PG_VERSION_NUM >= 130000 diff --git a/src/hnswvacuum.c b/src/hnswvacuum.c index 8bf6ac7..b530cdb 100644 --- a/src/hnswvacuum.c +++ b/src/hnswvacuum.c @@ -2,6 +2,7 @@ #include +#include "access/generic_xlog.h" #include "commands/vacuum.h" #include "hnsw.h" #include "storage/bufmgr.h" diff --git a/src/ivfinsert.c b/src/ivfinsert.c index 103fe49..342cca7 100644 --- a/src/ivfinsert.c +++ b/src/ivfinsert.c @@ -2,6 +2,7 @@ #include +#include "access/generic_xlog.h" #include "ivfflat.h" #include "storage/bufmgr.h" #include "storage/lmgr.h" diff --git a/src/ivfutils.c b/src/ivfutils.c index 7959a17..a8746f7 100644 --- a/src/ivfutils.c +++ b/src/ivfutils.c @@ -1,5 +1,6 @@ #include "postgres.h" +#include "access/generic_xlog.h" #include "ivfflat.h" #include "storage/bufmgr.h" #include "vector.h" diff --git a/src/ivfvacuum.c b/src/ivfvacuum.c index b548af1..57815af 100644 --- a/src/ivfvacuum.c +++ b/src/ivfvacuum.c @@ -1,5 +1,6 @@ #include "postgres.h" +#include "access/generic_xlog.h" #include "commands/vacuum.h" #include "ivfflat.h" #include "storage/bufmgr.h"