MCPcopy Create free account
hub / github.com/apache/cloudberry / get_funcs_for_compression

Function get_funcs_for_compression

src/backend/catalog/pg_attribute_encoding.c:78–96  ·  view source on GitHub ↗

* Get the set of functions implementing a compression algorithm. * * Intercept requests for "none", since that is not a real compression * implementation but a fake one to indicate no compression desired. */

Source from the content-addressed store, hash-verified

76 * implementation but a fake one to indicate no compression desired.
77 */
78PGFunction *
79get_funcs_for_compression(char *compresstype)
80{
81 PGFunction *func = NULL;
82
83 if (compresstype == NULL ||
84 compresstype[0] == '\0' ||
85 pg_strcasecmp("none", compresstype) == 0)
86 {
87 return func;
88 }
89 else
90 {
91 func = GetCompressionImplementation(compresstype);
92
93 Assert(PointerIsValid(func));
94 }
95 return func;
96}
97
98/*
99 * Get datum representations of the attoptions field in pg_attribute_encoding

Callers 5

create_datumstreamwriteFunction · 0.85
create_datumstreamreadFunction · 0.85
SetNextFileSegForReadFunction · 0.85
appendonly_fetch_initFunction · 0.85
appendonly_insert_initFunction · 0.85

Calls 2

pg_strcasecmpFunction · 0.85

Tested by

no test coverage detected