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

Function sepgsql_getcon

contrib/sepgsql/label.c:536–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534 */
535PG_FUNCTION_INFO_V1(sepgsql_getcon);
536Datum
537sepgsql_getcon(PG_FUNCTION_ARGS)
538{
539 char *client_label;
540
541 if (!sepgsql_is_enabled())
542 PG_RETURN_NULL();
543
544 client_label = sepgsql_get_client_label();
545
546 PG_RETURN_TEXT_P(cstring_to_text(client_label));
547}
548
549/*
550 * BOOL sepgsql_setcon(TEXT)

Callers

nothing calls this directly

Calls 3

sepgsql_is_enabledFunction · 0.85
sepgsql_get_client_labelFunction · 0.85
cstring_to_textFunction · 0.85

Tested by

no test coverage detected