pgvector.git / summary / log / commit / refs
commit e5d1a6bdbb4a2d67a7c8e3152eec7894d1574f99
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Tue Jan 23 10:48:46 2024 +0000
Include reloptions.h directly in the .c files where it's needed
There are no references to anything that's in reloptions.h in the
header files. They need to include genam.h instead, which defines
IndexScanDesc.
src/hnsw.c | 1 +
src/hnsw.h | 2 +-
src/ivfflat.c | 1 +
src/ivfflat.h | 2 +-
4 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/hnsw.c b/src/hnsw.c
index f5e1247d..9689b17f 100644
--- a/src/hnsw.c
+++ b/src/hnsw.c
@@ -4,6 +4,7 @@
#include <math.h>
#include "access/amapi.h"
+#include "access/reloptions.h"
#include "commands/progress.h"
#include "commands/vacuum.h"
#include "hnsw.h"
diff --git a/src/hnsw.h b/src/hnsw.h
index 7ab09d25..4678c8be 100644
--- a/src/hnsw.h
+++ b/src/hnsw.h
@@ -3,9 +3,9 @@
#include "postgres.h"
+#include "access/genam.h"
#include "access/generic_xlog.h"
#include "access/parallel.h"
-#include "access/reloptions.h"
#include "lib/pairingheap.h"
#include "nodes/execnodes.h"
#include "port.h" /* for random() */
diff --git a/src/ivfflat.c b/src/ivfflat.c
index 7545571e..a4d7fab3 100644
--- a/src/ivfflat.c
+++ b/src/ivfflat.c
@@ -3,6 +3,7 @@
#include <float.h>
#include "access/amapi.h"
+#include "access/reloptions.h"
#include "commands/progress.h"
#include "commands/vacuum.h"
#include "ivfflat.h"
diff --git a/src/ivfflat.h b/src/ivfflat.h
index 366fc441..e27420b9 100644
--- a/src/ivfflat.h
+++ b/src/ivfflat.h
@@ -3,9 +3,9 @@
#include "postgres.h"
+#include "access/genam.h"
#include "access/generic_xlog.h"
#include "access/parallel.h"
-#include "access/reloptions.h"
#include "lib/pairingheap.h"
#include "nodes/execnodes.h"
#include "port.h" /* for random() */
[parent: f31d708c2be7]