summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2023-12-10 06:44:04 +0000
committerPeter Eisentraut2023-12-10 06:46:06 +0000
commit90834ceccd7298d4495c088fab85e6d87b9cb086 (patch)
tree255f4a27a99c157fe1fc29e067de56015e7f2d6a
parentaa210e0c121eb8f58c86d4fcc833a5a6fbb6f5a9 (diff)
Remove some unnecessary includes of "access/xlog_internal.h"
There were a few places where access/xlog_internal.h was apparently included unnecessarily. In some of those places, a more specific header file (that somehow came in via access/xlog_internal.h) can be used instead. Reviewed-by: Heikki Linnakangas <[email protected]> Discussion: https://www.postgresql.org/message-id/flat/a56a6eec-eb14-471b-9570-3cac23603964%40eisentraut.org
-rw-r--r--src/bin/pg_checksums/pg_checksums.c2
-rw-r--r--src/bin/pg_rewind/timeline.c1
-rw-r--r--src/include/access/generic_xlog.h2
3 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/pg_checksums/pg_checksums.c b/src/bin/pg_checksums/pg_checksums.c
index 6543d9ce089..19c083be173 100644
--- a/src/bin/pg_checksums/pg_checksums.c
+++ b/src/bin/pg_checksums/pg_checksums.c
@@ -20,11 +20,11 @@
#include <sys/stat.h>
#include <unistd.h>
-#include "access/xlog_internal.h"
#include "common/controldata_utils.h"
#include "common/file_perm.h"
#include "common/file_utils.h"
#include "common/logging.h"
+#include "common/relpath.h"
#include "fe_utils/option_utils.h"
#include "getopt_long.h"
#include "pg_getopt.h"
diff --git a/src/bin/pg_rewind/timeline.c b/src/bin/pg_rewind/timeline.c
index 2d445dac32f..fd5f748448b 100644
--- a/src/bin/pg_rewind/timeline.c
+++ b/src/bin/pg_rewind/timeline.c
@@ -10,7 +10,6 @@
#include "postgres_fe.h"
#include "access/timeline.h"
-#include "access/xlog_internal.h"
#include "pg_rewind.h"
/*
diff --git a/src/include/access/generic_xlog.h b/src/include/access/generic_xlog.h
index 66941f99a84..f099ec7321f 100644
--- a/src/include/access/generic_xlog.h
+++ b/src/include/access/generic_xlog.h
@@ -15,7 +15,7 @@
#define GENERIC_XLOG_H
#include "access/xlog.h"
-#include "access/xlog_internal.h"
+#include "access/xlogreader.h"
#include "access/xloginsert.h"
#include "storage/bufpage.h"
#include "utils/rel.h"