basebackup_lz4.c File Reference
Include dependency graph for basebackup_lz4.c:
Go to the source code of this file.
Function Documentation
◆ bbsink_lz4_new()
Definition at line 62 of file basebackup_lz4.c.
63{
64#ifndef USE_LZ4
66 (
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
67 errmsg(
"lz4 compression is not supported by this build")));
68 return NULL; /* keep compiler quiet */
69#else
70 bbsink_lz4 *sink;
72
74
77
78 sink =
palloc0(
sizeof(bbsink_lz4));
79 *((
const bbsink_ops **) &sink->base.bbs_ops) = &bbsink_lz4_ops;
80 sink->base.bbs_next =
next;
82
83 return &sink->base;
84#endif
85}
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().