basebackup_zstd.c File Reference
Include dependency graph for basebackup_zstd.c:
Go to the source code of this file.
Function Documentation
◆ bbsink_zstd_new()
Definition at line 61 of file basebackup_zstd.c.
62{
63#ifndef USE_ZSTD
65 (
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
66 errmsg(
"zstd compression is not supported by this build")));
67 return NULL; /* keep compiler quiet */
68#else
69 bbsink_zstd *sink;
70
72
73 sink =
palloc0(
sizeof(bbsink_zstd));
74 *((
const bbsink_ops **) &sink->base.bbs_ops) = &bbsink_zstd_ops;
75 sink->base.bbs_next =
next;
76 sink->compress = compress;
77
78 return &sink->base;
79#endif
80}
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
Assert(PointerIsAligned(start, uint64))
void * palloc0(Size size)
References Assert(), ereport, errcode(), errmsg(), ERROR, next, and palloc0().
Referenced by SendBaseBackup().