From 74298db41eb8d2fa506c255183207be3e008cc49 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Tue, 17 Mar 2026 10:50:06 -0400 Subject: [PATCH v2 1/9] wip: Don't include read_stream.h in tableam.h --- src/include/access/tableam.h | 2 +- src/backend/access/brin/brin.c | 1 + src/backend/commands/analyze.c | 1 + src/backend/utils/cache/relcache.c | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/include/access/tableam.h b/src/include/access/tableam.h index 4647785fd35..df00fee2229 100644 --- a/src/include/access/tableam.h +++ b/src/include/access/tableam.h @@ -21,7 +21,6 @@ #include "access/sdir.h" #include "access/xact.h" #include "executor/tuptable.h" -#include "storage/read_stream.h" #include "utils/rel.h" #include "utils/snapshot.h" @@ -36,6 +35,7 @@ extern PGDLLIMPORT bool synchronize_seqscans; /* forward references in this file */ typedef struct BulkInsertStateData BulkInsertStateData; typedef struct IndexInfo IndexInfo; +typedef struct ReadStream ReadStream; typedef struct SampleScanState SampleScanState; typedef struct ScanKeyData ScanKeyData; typedef struct ValidateIndexState ValidateIndexState; diff --git a/src/backend/access/brin/brin.c b/src/backend/access/brin/brin.c index bdb30752e09..5ec99d44d59 100644 --- a/src/backend/access/brin/brin.c +++ b/src/backend/access/brin/brin.c @@ -35,6 +35,7 @@ #include "storage/bufmgr.h" #include "storage/condition_variable.h" #include "storage/freespace.h" +#include "storage/read_stream.h" #include "storage/proc.h" #include "tcop/tcopprot.h" #include "utils/acl.h" diff --git a/src/backend/commands/analyze.c b/src/backend/commands/analyze.c index 49a5cdf579c..e5d38322753 100644 --- a/src/backend/commands/analyze.c +++ b/src/backend/commands/analyze.c @@ -45,6 +45,7 @@ #include "statistics/statistics.h" #include "storage/bufmgr.h" #include "storage/procarray.h" +#include "storage/read_stream.h" #include "utils/attoptcache.h" #include "utils/datum.h" #include "utils/guc.h" diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c index e19f0d3e51c..5e2730d92b9 100644 --- a/src/backend/utils/cache/relcache.c +++ b/src/backend/utils/cache/relcache.c @@ -75,6 +75,7 @@ #include "pgstat.h" #include "rewrite/rewriteDefine.h" #include "rewrite/rowsecurity.h" +#include "storage/bufmgr.h" #include "storage/fd.h" #include "storage/lmgr.h" #include "storage/lock.h" -- 2.53.0.1.gb2826b52eb