aboutsummaryrefslogtreecommitdiff
path: root/src/backend/backup/basebackup.c
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2023-09-05 17:02:06 -0700
committerNathan Bossart <nathan@postgresql.org>2023-09-05 17:02:06 -0700
commitf39b265808bde307953dd4bd46dca1f58f0988e8 (patch)
tree142201a17026ae2a4bd65905e1012f68d68372cb /src/backend/backup/basebackup.c
parent119c23eb9819213551cbe7e7665c8b493c59ceee (diff)
downloadpostgresql-f39b265808bde307953dd4bd46dca1f58f0988e8.tar.gz
postgresql-f39b265808bde307953dd4bd46dca1f58f0988e8.zip
Move PG_TEMP_FILE* macros to file_utils.h.
Presently, frontend code that needs to use these macros must either include storage/fd.h, which declares several frontend-unsafe functions, or duplicate the macros. This commit moves these macros to common/file_utils.h, which is safe for both frontend and backend code. Consequently, we can also remove the duplicated macros in pg_checksums and stop including storage/fd.h in pg_rewind. Reviewed-by: Michael Paquier Discussion: https://postgr.es/m/ZOP5qoUualu5xl2Z%40paquier.xyz
Diffstat (limited to 'src/backend/backup/basebackup.c')
-rw-r--r--src/backend/backup/basebackup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/backup/basebackup.c b/src/backend/backup/basebackup.c
index 45be21131c5..5d66014499a 100644
--- a/src/backend/backup/basebackup.c
+++ b/src/backend/backup/basebackup.c
@@ -25,6 +25,7 @@
#include "commands/defrem.h"
#include "common/compression.h"
#include "common/file_perm.h"
+#include "common/file_utils.h"
#include "lib/stringinfo.h"
#include "miscadmin.h"
#include "nodes/pg_list.h"
@@ -37,7 +38,6 @@
#include "storage/bufpage.h"
#include "storage/checksum.h"
#include "storage/dsm_impl.h"
-#include "storage/fd.h"
#include "storage/ipc.h"
#include "storage/reinit.h"
#include "utils/builtins.h"