|
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_tar_compress_algorithm (const char *fname, pg_compress_algorithm *algorithm) |
| 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 341 of file compression.c.
References _, fb(), pg_strcasecmp(), psprintf(), result, and value.
Referenced by parse_compress_specification().
|
static |
Definition at line 305 of file compression.c.
References _, fb(), psprintf(), result, and value.
Referenced by parse_compress_specification().
| const char * get_compress_algorithm_name | ( | pg_compress_algorithm | algorithm | ) |
Definition at line 99 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 79 of file compression.c.
References fb(), 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 137 of file compression.c.
References _, expect_boolean_value(), expect_integer_value(), fb(), memcpy(), palloc(), pfree(), PG_COMPRESSION_GZIP, PG_COMPRESSION_LZ4, PG_COMPRESSION_NONE, PG_COMPRESSION_OPTION_LONG_DISTANCE, PG_COMPRESSION_OPTION_WORKERS, PG_COMPRESSION_ZSTD, psprintf(), pstrdup(), result, and value.
Referenced by main(), and parse_basebackup_options().
| bool parse_tar_compress_algorithm | ( | const char * | fname, |
| pg_compress_algorithm * | algorithm | ||
| ) |
Definition at line 49 of file compression.c.
References fb(), PG_COMPRESSION_GZIP, PG_COMPRESSION_LZ4, PG_COMPRESSION_NONE, and PG_COMPRESSION_ZSTD.
Referenced by CreateBackupStreamer(), main(), and precheck_tar_backup_file().
| char * validate_compress_specification | ( | pg_compress_specification * | spec | ) |
Definition at line 374 of file compression.c.
References _, fb(), get_compress_algorithm_name(), 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().