basebackup_gzip.c File Reference
Include dependency graph for basebackup_gzip.c:
Go to the source code of this file.
Function Documentation
◆ bbsink_gzip_new()
Definition at line 62 of file basebackup_gzip.c.
63{
64#ifndef HAVE_LIBZ
66 (
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
67 errmsg(
"gzip compression is not supported by this build")));
68 return NULL; /* keep compiler quiet */
69#else
70 bbsink_gzip *sink;
72
74
78
79 sink =
palloc0(
sizeof(bbsink_gzip));
80 *((
const bbsink_ops **) &sink->base.bbs_ops) = &bbsink_gzip_ops;
81 sink->base.bbs_next =
next;
83
84 return &sink->base;
85#endif
86}
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
Assert(PointerIsAligned(start, uint64))
void * palloc0(Size size)
References Assert(), compresslevel, ereport, errcode(), errmsg(), ERROR, pg_compress_specification::level, next, and palloc0().
Referenced by SendBaseBackup().