26 pg_fatal(
"this build does not support compression with %s",
"ZSTD");
32 pg_fatal(
"this build does not support compression with %s",
"ZSTD");
67 pg_fatal(
"could not set compression parameter \"%s\": %s",
79 pg_fatal(
"could not initialize compression library");
82 compress.
level,
"level");
128 if (cs->readF !=
NULL)
134 else if (cs->writeF !=
NULL)
144 cs->private_data =
NULL;
232 pg_fatal(
"could not initialize compression library");
281 pg_fatal(
"could not initialize compression library");
313 pg_fatal(
"could not read from input file: %m");
369 pg_fatal(
"could not initialize compression library");
387 pg_fatal(
"could not write to file: %m");
399 if (
CFH->read_func(&ret, 1,
CFH) != 1)
400 pg_fatal(
"could not read from input file: end of file");
415 for (
i = 0;
i <
len - 1; ++
i)
547 sprintf(fname,
"%s.zst", path);
573 CFH->compression_spec = compression_spec;
#define unconstify(underlying_type, expr)
#define Assert(condition)
void InitCompressorZstd(CompressorState *cs, const pg_compress_specification compression_spec)
void InitCompressFileHandleZstd(CompressFileHandle *CFH, const pg_compress_specification compression_spec)
#define PG_COMPRESSION_OPTION_LONG_DISTANCE
void * pg_malloc(size_t size)
void * pg_malloc_extended(size_t size, int flags)
void * pg_malloc0(size_t size)
#define MCXT_ALLOC_NO_OOM
void ahwrite(const void *ptr, size_t size, size_t nmemb, ArchiveHandle *AH)
static PgChecksumMode mode
static char buf[DEFAULT_XLOG_SEG_SIZE]
static int fd(const char *x, int i)
void(* readData)(ArchiveHandle *AH, CompressorState *cs)
pg_compress_specification compression_spec
void(* end)(ArchiveHandle *AH, CompressorState *cs)
void(* writeData)(ArchiveHandle *AH, CompressorState *cs, const void *data, size_t dLen)