PostgreSQL Source Code
git master
|
#include "common/compression.h"
Go to the source code of this file.
Data Structures | |
struct | Walfile |
struct | WalWriteMethodOps |
struct | WalWriteMethod |
Typedefs | |
typedef struct WalWriteMethod | WalWriteMethod |
typedef struct WalWriteMethodOps | WalWriteMethodOps |
Enumerations | |
enum | WalCloseMethod { CLOSE_NORMAL , CLOSE_UNLINK , CLOSE_NO_RENAME } |
Functions | |
WalWriteMethod * | CreateWalDirectoryMethod (const char *basedir, pg_compress_algorithm compression_algorithm, int compression_level, bool sync) |
WalWriteMethod * | CreateWalTarMethod (const char *tarbase, pg_compress_algorithm compression_algorithm, int compression_level, bool sync) |
const char * | GetLastWalMethodError (WalWriteMethod *wwmethod) |
typedef struct WalWriteMethod WalWriteMethod |
Definition at line 1 of file walmethods.h.
typedef struct WalWriteMethodOps WalWriteMethodOps |
enum WalCloseMethod |
WalWriteMethod* CreateWalDirectoryMethod | ( | const char * | basedir, |
pg_compress_algorithm | compression_algorithm, | ||
int | compression_level, | ||
bool | sync | ||
) |
Definition at line 640 of file walmethods.c.
References DirectoryMethodData::base, basedir, DirectoryMethodData::basedir, clear_error, compression_algorithm, WalWriteMethod::compression_algorithm, WalWriteMethod::compression_level, WalWriteMethod::ops, pg_malloc0(), pg_strdup(), WalWriteMethod::sync, and WalDirectoryMethodOps.
Referenced by LogStreamerMain(), and StreamLog().
WalWriteMethod* CreateWalTarMethod | ( | const char * | tarbase, |
pg_compress_algorithm | compression_algorithm, | ||
int | compression_level, | ||
bool | sync | ||
) |
Definition at line 1355 of file walmethods.c.
References TarMethodData::base, clear_error, compression_algorithm, WalWriteMethod::compression_algorithm, WalWriteMethod::compression_level, TarMethodData::fd, WalWriteMethod::ops, PG_COMPRESSION_GZIP, pg_malloc(), pg_malloc0(), sprintf, WalWriteMethod::sync, TarMethodData::tarfilename, WalTarMethodOps, and ZLIB_OUT_SIZE.
Referenced by LogStreamerMain().
const char* GetLastWalMethodError | ( | WalWriteMethod * | wwmethod | ) |
Definition at line 1383 of file walmethods.c.
References WalWriteMethod::lasterrno, WalWriteMethod::lasterrstring, and strerror.
Referenced by close_walfile(), HandleCopyStream(), mark_file_as_archived(), open_walfile(), ProcessKeepaliveMsg(), ProcessXLogDataMsg(), ReceiveXlogStream(), tar_close(), and writeTimeLineHistoryFile().