* 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. */
| 76 | * implementation but a fake one to indicate no compression desired. |
| 77 | */ |
| 78 | PGFunction * |
| 79 | get_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 |
no test coverage detected