PostgreSQL Source Code
git master
|
#include "common/compression.h"
Go to the source code of this file.
Data Structures | |
struct | WalWriteMethod |
Typedefs | |
typedef void * | Walfile |
typedef struct WalWriteMethod | WalWriteMethod |
Enumerations | |
enum | WalCloseMethod { CLOSE_NORMAL , CLOSE_UNLINK , CLOSE_NO_RENAME } |
Functions | |
WalWriteMethod * | CreateWalDirectoryMethod (const char *basedir, pg_compress_algorithm compression_algo, int compression, bool sync) |
WalWriteMethod * | CreateWalTarMethod (const char *tarbase, pg_compress_algorithm compression_algo, int compression, bool sync) |
void | FreeWalDirectoryMethod (void) |
void | FreeWalTarMethod (void) |
typedef void* Walfile |
Definition at line 14 of file walmethods.h.
typedef struct WalWriteMethod WalWriteMethod |
Definition at line 14 of file walmethods.h.
enum WalCloseMethod |
WalWriteMethod* CreateWalDirectoryMethod | ( | const char * | basedir, |
pg_compress_algorithm | compression_algo, | ||
int | compression, | ||
bool | sync | ||
) |
Definition at line 625 of file walmethods.c.
References basedir, DirectoryMethodData::basedir, WalWriteMethod::close, compression_algorithm, DirectoryMethodData::compression_algorithm, WalWriteMethod::compression_algorithm, DirectoryMethodData::compression_level, dir_close(), dir_compression_algorithm(), dir_data, dir_existsfile(), dir_finish(), dir_get_current_pos(), dir_get_file_name(), dir_get_file_size(), dir_getlasterror(), dir_open_for_write(), dir_sync(), dir_write(), WalWriteMethod::existsfile, WalWriteMethod::finish, WalWriteMethod::get_current_pos, WalWriteMethod::get_file_name, WalWriteMethod::get_file_size, WalWriteMethod::getlasterror, WalWriteMethod::open_for_write, pg_malloc0(), pg_strdup(), DirectoryMethodData::sync, WalWriteMethod::sync, and WalWriteMethod::write.
Referenced by LogStreamerMain(), and StreamLog().
WalWriteMethod* CreateWalTarMethod | ( | const char * | tarbase, |
pg_compress_algorithm | compression_algo, | ||
int | compression, | ||
bool | sync | ||
) |
Definition at line 1338 of file walmethods.c.
References WalWriteMethod::close, compression_algorithm, TarMethodData::compression_algorithm, WalWriteMethod::compression_algorithm, TarMethodData::compression_level, WalWriteMethod::existsfile, TarMethodData::fd, WalWriteMethod::finish, WalWriteMethod::get_current_pos, WalWriteMethod::get_file_name, WalWriteMethod::get_file_size, WalWriteMethod::getlasterror, WalWriteMethod::open_for_write, PG_COMPRESSION_GZIP, pg_malloc(), pg_malloc0(), sprintf, TarMethodData::sync, WalWriteMethod::sync, tar_close(), tar_compression_algorithm(), tar_data, tar_existsfile(), tar_finish(), tar_get_current_pos(), tar_get_file_name(), tar_get_file_size(), tar_getlasterror(), tar_open_for_write(), tar_sync(), tar_write(), TarMethodData::tarfilename, WalWriteMethod::write, and ZLIB_OUT_SIZE.
Referenced by LogStreamerMain().
void FreeWalDirectoryMethod | ( | void | ) |
Definition at line 654 of file walmethods.c.
References DirectoryMethodData::basedir, dir_data, and pg_free().
Referenced by LogStreamerMain(), and StreamLog().
void FreeWalTarMethod | ( | void | ) |
Definition at line 1375 of file walmethods.c.
References TarMethodData::compression_algorithm, PG_COMPRESSION_GZIP, pg_free(), tar_data, and TarMethodData::tarfilename.
Referenced by LogStreamerMain().