From 0c72862ca27635faa8f1f060cd9722001d4f1773 Mon Sep 17 00:00:00 2001
From: Andres Freund <andres@anarazel.de>
Date: Thu, 2 Apr 2026 11:56:01 -0400
Subject: [PATCH v2 4/9] Don't include snapshot.h in tableam.h

---
 src/include/access/tableam.h     | 3 ++-
 src/backend/executor/execUtils.c | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/include/access/tableam.h b/src/include/access/tableam.h
index df00fee2229..7f99203f965 100644
--- a/src/include/access/tableam.h
+++ b/src/include/access/tableam.h
@@ -22,7 +22,6 @@
 #include "access/xact.h"
 #include "executor/tuptable.h"
 #include "utils/rel.h"
-#include "utils/snapshot.h"
 
 
 #define DEFAULT_TABLE_ACCESS_METHOD	"heap"
@@ -38,6 +37,8 @@ typedef struct IndexInfo IndexInfo;
 typedef struct ReadStream ReadStream;
 typedef struct SampleScanState SampleScanState;
 typedef struct ScanKeyData ScanKeyData;
+typedef struct SnapshotData SnapshotData;
+typedef SnapshotData *Snapshot;
 typedef struct ValidateIndexState ValidateIndexState;
 typedef struct VacuumParams VacuumParams;
 
diff --git a/src/backend/executor/execUtils.c b/src/backend/executor/execUtils.c
index 1eb6b9f1f40..280364364dc 100644
--- a/src/backend/executor/execUtils.c
+++ b/src/backend/executor/execUtils.c
@@ -61,6 +61,7 @@
 #include "utils/builtins.h"
 #include "utils/memutils.h"
 #include "utils/rel.h"
+#include "utils/snapshot.h"
 #include "utils/typcache.h"
 
 
-- 
2.53.0.1.gb2826b52eb

