13 #ifndef TOAST_COMPRESSION_H
14 #define TOAST_COMPRESSION_H
49 #define TOAST_PGLZ_COMPRESSION 'p'
50 #define TOAST_LZ4_COMPRESSION 'l'
51 #define InvalidCompressionMethod '\0'
53 #define CompressionMethodIsValid(cm) ((cm) != InvalidCompressionMethod)
@ TOAST_INVALID_COMPRESSION_ID
@ TOAST_LZ4_COMPRESSION_ID
@ TOAST_PGLZ_COMPRESSION_ID
struct varlena * lz4_decompress_datum(const struct varlena *value)
struct varlena * lz4_decompress_datum_slice(const struct varlena *value, int32 slicelength)
PGDLLIMPORT int default_toast_compression
struct varlena * pglz_decompress_datum(const struct varlena *value)
struct varlena * pglz_decompress_datum_slice(const struct varlena *value, int32 slicelength)
const char * GetCompressionMethodName(char method)
struct varlena * lz4_compress_datum(const struct varlena *value)
struct varlena * pglz_compress_datum(const struct varlena *value)
char CompressionNameToMethod(const char *compression)
ToastCompressionId toast_get_compression_id(struct varlena *attr)