From e5d1a6bdbb4a2d67a7c8e3152eec7894d1574f99 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Tue, 23 Jan 2024 12:48:46 +0200 Subject: [PATCH] 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 f5e1247..9689b17 100644 --- a/src/hnsw.c +++ b/src/hnsw.c @@ -4,6 +4,7 @@ #include #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 7ab09d2..4678c8b 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 7545571..a4d7fab 100644 --- a/src/ivfflat.c +++ b/src/ivfflat.c @@ -3,6 +3,7 @@ #include #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 366fc44..e27420b 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() */