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

Function sepgsql_setcon

contrib/sepgsql/label.c:555–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553 */
554PG_FUNCTION_INFO_V1(sepgsql_setcon);
555Datum
556sepgsql_setcon(PG_FUNCTION_ARGS)
557{
558 const char *new_label;
559
560 if (PG_ARGISNULL(0))
561 new_label = NULL;
562 else
563 new_label = TextDatumGetCString(PG_GETARG_DATUM(0));
564
565 sepgsql_set_client_label(new_label);
566
567 PG_RETURN_BOOL(true);
568}
569
570/*
571 * TEXT sepgsql_mcstrans_in(TEXT)

Callers

nothing calls this directly

Calls 1

sepgsql_set_client_labelFunction · 0.85

Tested by

no test coverage detected