1/*-------------------------------------------------------------------------
5 * Shared definitions for compression methods and specifications.
7 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
10 * src/include/common/compression.h
11 *-------------------------------------------------------------------------
14#ifndef PG_COMPRESSION_H
15#define PG_COMPRESSION_H
18 * These values are stored in disk, for example in files generated by pg_dump.
19 * Create the necessary backwards compatibility layers if their order changes.
29 #define PG_COMPRESSION_OPTION_WORKERS (1 << 0)
30 #define PG_COMPRESSION_OPTION_LONG_DISTANCE (1 << 1)
35 unsigned options;
/* OR of PG_COMPRESSION_OPTION constants */
struct pg_compress_specification pg_compress_specification
const char * get_compress_algorithm_name(pg_compress_algorithm algorithm)
bool parse_compress_algorithm(char *name, pg_compress_algorithm *algorithm)
char * validate_compress_specification(pg_compress_specification *)
void parse_compress_options(const char *option, char **algorithm, char **detail)
void parse_compress_specification(pg_compress_algorithm algorithm, char *specification, pg_compress_specification *result)
pg_compress_algorithm algorithm