mirror of
https://github.com/postgres/postgres.git
synced 2025-11-01 21:31:19 +03:00
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
This commit is contained in:
@@ -27,12 +27,12 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "catalog/pg_tablespace_d.h"
|
||||
#include "common/file_utils.h"
|
||||
#include "common/hashfn.h"
|
||||
#include "common/string.h"
|
||||
#include "datapagemap.h"
|
||||
#include "filemap.h"
|
||||
#include "pg_rewind.h"
|
||||
#include "storage/fd.h"
|
||||
|
||||
/*
|
||||
* Define a hash table which we can use to store information about the files
|
||||
|
||||
Reference in New Issue
Block a user