mirror of
https://github.com/postgres/postgres.git
synced 2026-03-12 05:32:27 -04:00
"xlog" is not a particularly clear abbreviation for "write-ahead log", and it sometimes confuses users into believe that the contents of the "pg_xlog" directory are not critical data, leading to unpleasant consequences. So, rename the directory to "pg_wal". This patch modifies pg_upgrade and pg_basebackup to understand both the old and new directory layouts; the former is necessary given the purpose of the tool, while the latter merely avoids an unnecessary backward-compatibility break. We may wish to consider renaming other programs, switches, and functions which still use the old "xlog" naming to also refer to "wal". However, that's still under discussion, so let's do just this much for now. Discussion: CAB7nPqTeC-8+zux8_-4ZD46V7YPwooeFxgndfsq5Rg8ibLVm1A@mail.gmail.com Michael Paquier
26 lines
878 B
C
26 lines
878 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* File-processing utility routines for frontend code
|
|
*
|
|
* Assorted utility functions to work on files.
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/common/file_utils.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef FILE_UTILS_H
|
|
#define FILE_UTILS_H
|
|
|
|
extern int fsync_fname(const char *fname, bool isdir,
|
|
const char *progname);
|
|
extern void fsync_pgdata(const char *pg_data, const char *progname,
|
|
int serverVersion);
|
|
extern int durable_rename(const char *oldfile, const char *newfile,
|
|
const char *progname);
|
|
extern int fsync_parent_path(const char *fname, const char *progname);
|
|
|
|
#endif /* FILE_UTILS_H */
|