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

Function pg_valid_client_encoding

src/common/encnames.c:485–497  ·  view source on GitHub ↗

---------- * Encoding checks, for error returns -1 else encoding id * ---------- */

Source from the content-addressed store, hash-verified

483 * ----------
484 */
485int
486pg_valid_client_encoding(const char *name)
487{
488 int enc;
489
490 if ((enc = pg_char_to_encoding(name)) < 0)
491 return -1;
492
493 if (!PG_VALID_FE_ENCODING(enc))
494 return -1;
495
496 return enc;
497}
498
499int
500pg_valid_server_encoding(const char *name)

Callers 2

check_client_encodingFunction · 0.85
DefineExternalRelationFunction · 0.85

Calls 1

pg_char_to_encodingFunction · 0.85

Tested by

no test coverage detected