From eda94a46d8d3f289b671cd30bbd9e0e05fcb34dc Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 10 Dec 2025 22:55:54 -0800 Subject: [PATCH] Added more headers --- src/hnsw.c | 4 ++++ src/hnswbuild.c | 3 +++ src/hnswinsert.c | 2 ++ src/hnswscan.c | 2 ++ src/hnswutils.c | 1 + src/ivfbuild.c | 2 ++ src/ivfflat.c | 4 ++++ src/ivfinsert.c | 2 ++ src/ivfkmeans.c | 2 ++ src/ivfscan.c | 4 ++++ 10 files changed, 26 insertions(+) diff --git a/src/hnsw.c b/src/hnsw.c index 50628e7..4bd03c8 100644 --- a/src/hnsw.c +++ b/src/hnsw.c @@ -5,12 +5,16 @@ #include #include "access/amapi.h" +#include "access/genam.h" #include "access/reloptions.h" #include "commands/progress.h" #include "commands/vacuum.h" #include "fmgr.h" #include "hnsw.h" #include "miscadmin.h" +#include "nodes/nodes.h" +#include "nodes/pathnodes.h" +#include "nodes/pg_list.h" #include "utils/float.h" #include "utils/guc.h" #include "utils/selfuncs.h" diff --git a/src/hnswbuild.c b/src/hnswbuild.c index 836cf15..ebd4877 100644 --- a/src/hnswbuild.c +++ b/src/hnswbuild.c @@ -38,8 +38,10 @@ #include "access/genam.h" #include "access/parallel.h" +#include "access/relscan.h" #include "access/table.h" #include "access/tableam.h" +#include "access/tupdesc.h" #include "access/xact.h" #include "access/xloginsert.h" #include "catalog/index.h" @@ -49,6 +51,7 @@ #include "miscadmin.h" #include "optimizer/optimizer.h" #include "storage/bufmgr.h" +#include "storage/bufpage.h" #include "storage/condition_variable.h" #include "storage/shm_toc.h" #include "storage/shmem.h" diff --git a/src/hnswinsert.c b/src/hnswinsert.c index 15b1483..945bd84 100644 --- a/src/hnswinsert.c +++ b/src/hnswinsert.c @@ -1,8 +1,10 @@ #include "postgres.h" +#include "access/genam.h" #include "access/generic_xlog.h" #include "hnsw.h" #include "storage/bufmgr.h" +#include "storage/bufpage.h" #include "storage/lmgr.h" #include "utils/datum.h" #include "utils/memutils.h" diff --git a/src/hnswscan.c b/src/hnswscan.c index 7a606cc..d363399 100644 --- a/src/hnswscan.c +++ b/src/hnswscan.c @@ -1,7 +1,9 @@ #include "postgres.h" #include "access/relscan.h" +#include "access/skey.h" #include "hnsw.h" +#include "lib/pairingheap.h" #include "nodes/pg_list.h" #include "pgstat.h" #include "storage/lmgr.h" diff --git a/src/hnswutils.c b/src/hnswutils.c index 6a1b1d6..64f449e 100644 --- a/src/hnswutils.c +++ b/src/hnswutils.c @@ -2,6 +2,7 @@ #include +#include "access/genam.h" #include "access/generic_xlog.h" #include "common/hashfn.h" #include "fmgr.h" diff --git a/src/ivfbuild.c b/src/ivfbuild.c index ef93a9a..7191bfd 100644 --- a/src/ivfbuild.c +++ b/src/ivfbuild.c @@ -3,6 +3,7 @@ #include #include "access/genam.h" +#include "access/generic_xlog.h" #include "access/table.h" #include "access/tableam.h" #include "access/tupdesc.h" @@ -13,6 +14,7 @@ #include "catalog/pg_operator_d.h" #include "catalog/pg_type_d.h" #include "commands/progress.h" +#include "executor/tuptable.h" #include "fmgr.h" #include "ivfflat.h" #include "miscadmin.h" diff --git a/src/ivfflat.c b/src/ivfflat.c index 4973cf4..c41d1b7 100644 --- a/src/ivfflat.c +++ b/src/ivfflat.c @@ -3,11 +3,15 @@ #include #include "access/amapi.h" +#include "access/genam.h" #include "access/reloptions.h" #include "commands/progress.h" #include "commands/vacuum.h" #include "fmgr.h" #include "ivfflat.h" +#include "nodes/nodes.h" +#include "nodes/pathnodes.h" +#include "nodes/pg_list.h" #include "utils/float.h" #include "utils/guc.h" #include "utils/selfuncs.h" diff --git a/src/ivfinsert.c b/src/ivfinsert.c index 7bc5aea..e863acc 100644 --- a/src/ivfinsert.c +++ b/src/ivfinsert.c @@ -2,9 +2,11 @@ #include +#include "access/genam.h" #include "access/generic_xlog.h" #include "fmgr.h" #include "ivfflat.h" +#include "nodes/execnodes.h" #include "storage/bufmgr.h" #include "storage/lmgr.h" #include "utils/memutils.h" diff --git a/src/ivfkmeans.c b/src/ivfkmeans.c index 569dd7c..bb65f73 100644 --- a/src/ivfkmeans.c +++ b/src/ivfkmeans.c @@ -4,6 +4,8 @@ #include #include +#include "access/genam.h" +#include "fmgr.h" #include "ivfflat.h" #include "miscadmin.h" #include "utils/memutils.h" diff --git a/src/ivfscan.c b/src/ivfscan.c index 06cdee1..ea5036d 100644 --- a/src/ivfscan.c +++ b/src/ivfscan.c @@ -2,9 +2,13 @@ #include +#include "access/genam.h" +#include "access/itup.h" #include "access/relscan.h" +#include "access/skey.h" #include "catalog/pg_operator_d.h" #include "catalog/pg_type_d.h" +#include "executor/tuptable.h" #include "lib/pairingheap.h" #include "ivfflat.h" #include "miscadmin.h"