diff options
Diffstat (limited to 'src/bin/pg_basebackup/walmethods.h')
-rw-r--r-- | src/bin/pg_basebackup/walmethods.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bin/pg_basebackup/walmethods.h b/src/bin/pg_basebackup/walmethods.h index 9a661c673cc..f9bd59d0cdc 100644 --- a/src/bin/pg_basebackup/walmethods.h +++ b/src/bin/pg_basebackup/walmethods.h @@ -53,6 +53,15 @@ struct WalWriteMethod ssize_t (*get_file_size) (const char *pathname); /* + * Return the name of the current file to work on, without the base + * directory. This is useful for logging. + */ + char *(*get_file_name) (const char *pathname, const char *temp_suffix); + + /* Return the level of compression */ + int (*compression) (void); + + /* * Write count number of bytes to the file, and return the number of bytes * actually written or -1 for error. */ |