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

Function SetDatabaseEncoding

src/backend/utils/mb/mbutils.c:1232–1240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1230}
1231
1232void
1233SetDatabaseEncoding(int encoding)
1234{
1235 if (!PG_VALID_BE_ENCODING(encoding))
1236 elog(ERROR, "invalid database encoding: %d", encoding);
1237
1238 DatabaseEncoding = &pg_enc2name_tbl[encoding];
1239 Assert(DatabaseEncoding->encoding == encoding);
1240}
1241
1242void
1243SetMessageEncoding(int encoding)

Callers 1

CheckMyDatabaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected