PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
static int | expect_integer_value (char *keyword, char *value, pg_compress_specification *result) |
static bool | expect_boolean_value (char *keyword, char *value, pg_compress_specification *result) |
bool | parse_compress_algorithm (char *name, pg_compress_algorithm *algorithm) |
const char * | get_compress_algorithm_name (pg_compress_algorithm algorithm) |
void | parse_compress_specification (pg_compress_algorithm algorithm, char *specification, pg_compress_specification *result) |
char * | validate_compress_specification (pg_compress_specification *spec) |
|
static |
Definition at line 311 of file compression.c.
References _, pg_compress_specification::parse_error, pg_strcasecmp(), psprintf(), and value.
Referenced by parse_compress_specification().
|
static |
Definition at line 275 of file compression.c.
References _, pg_compress_specification::parse_error, psprintf(), and value.
Referenced by parse_compress_specification().
const char* get_compress_algorithm_name | ( | pg_compress_algorithm | algorithm | ) |
Definition at line 69 of file compression.c.
References Assert, PG_COMPRESSION_GZIP, PG_COMPRESSION_LZ4, PG_COMPRESSION_NONE, and PG_COMPRESSION_ZSTD.
Referenced by PrintTOCSummary(), supports_compression(), and validate_compress_specification().
bool parse_compress_algorithm | ( | char * | name, |
pg_compress_algorithm * | algorithm | ||
) |
Definition at line 49 of file compression.c.
References name, PG_COMPRESSION_GZIP, PG_COMPRESSION_LZ4, PG_COMPRESSION_NONE, and PG_COMPRESSION_ZSTD.
Referenced by main(), and parse_basebackup_options().
void parse_compress_specification | ( | pg_compress_algorithm | algorithm, |
char * | specification, | ||
pg_compress_specification * | result | ||
) |
Definition at line 107 of file compression.c.
References _, pg_compress_specification::algorithm, expect_boolean_value(), expect_integer_value(), pg_compress_specification::level, pg_compress_specification::long_distance, pg_compress_specification::options, palloc(), pg_compress_specification::parse_error, pfree(), PG_COMPRESSION_GZIP, PG_COMPRESSION_LZ4, PG_COMPRESSION_NONE, PG_COMPRESSION_OPTION_LONG_DISTANCE, PG_COMPRESSION_OPTION_WORKERS, PG_COMPRESSION_ZSTD, psprintf(), pstrdup(), value, and pg_compress_specification::workers.
Referenced by main(), and parse_basebackup_options().
char* validate_compress_specification | ( | pg_compress_specification * | spec | ) |
Definition at line 344 of file compression.c.
References _, pg_compress_specification::algorithm, get_compress_algorithm_name(), pg_compress_specification::level, pg_compress_specification::options, pg_compress_specification::parse_error, PG_COMPRESSION_GZIP, PG_COMPRESSION_LZ4, PG_COMPRESSION_NONE, PG_COMPRESSION_OPTION_LONG_DISTANCE, PG_COMPRESSION_OPTION_WORKERS, PG_COMPRESSION_ZSTD, and psprintf().
Referenced by main(), and parse_basebackup_options().