From f39b265808bde307953dd4bd46dca1f58f0988e8 Mon Sep 17 00:00:00 2001 From: Nathan Bossart Date: Tue, 5 Sep 2023 17:02:06 -0700 Subject: 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 --- src/backend/storage/file/fileset.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/backend/storage/file/fileset.c') diff --git a/src/backend/storage/file/fileset.c b/src/backend/storage/file/fileset.c index e9951b02694..84cae32548e 100644 --- a/src/backend/storage/file/fileset.c +++ b/src/backend/storage/file/fileset.c @@ -25,6 +25,7 @@ #include "catalog/pg_tablespace.h" #include "commands/tablespace.h" +#include "common/file_utils.h" #include "common/hashfn.h" #include "miscadmin.h" #include "storage/ipc.h" -- cgit v1.2.3