pgvector.git / summary / log / commit / refs
commit c8be3a369b7a56b98dfbe0deb45251e7659e5482
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Tue Jan 23 10:47:26 2024 +0000
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 4678c8be..dcd7d284 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 3fbb78dc..f2c65091 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 7d43230b..b00be178 100644
--- a/src/hnswinsert.c
+++ b/src/hnswinsert.c
@@ -2,6 +2,7 @@
#include <math.h>
+#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 e2195302..6e703636 100644
--- a/src/hnswutils.c
+++ b/src/hnswutils.c
@@ -2,10 +2,12 @@
#include <math.h>
+#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 8bf6ac77..b530cdb3 100644
--- a/src/hnswvacuum.c
+++ b/src/hnswvacuum.c
@@ -2,6 +2,7 @@
#include <math.h>
+#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 103fe49f..342cca7e 100644
--- a/src/ivfinsert.c
+++ b/src/ivfinsert.c
@@ -2,6 +2,7 @@
#include <float.h>
+#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 7959a175..a8746f7f 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 b548af15..57815afa 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"
[parent: e5d1a6bdbb4a]