git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aa210e0)
Remove some unnecessary includes of "access/xlog_internal.h"
2023年12月10日 06:44:04 +0000 (07:44 +0100)
2023年12月10日 06:46:06 +0000 (07:46 +0100)
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 <hlinnaka@iki.fi>
Discussion: https://www.postgresql.org/message-id/flat/a56a6eec-eb14-471b-9570-3cac23603964%40eisentraut.org


diff --git a/src/bin/pg_checksums/pg_checksums.c b/src/bin/pg_checksums/pg_checksums.c
index 6543d9ce089f5f1b96545671a4efba28d6d0d33d..19c083be173ee4f1360c2d2f09fdddaded5ff35c 100644 (file)
--- 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 2d445dac32fe821fd7007532f96ef946dfa76935..fd5f748448b8801b0cc9ad0fa23c135d7c0b2984 100644 (file)
--- 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 66941f99a8474008acb567cb8fe716e0296a2433..f099ec7321f117df2ea4a04094080108e1e85d17 100644 (file)
--- 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"
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /