| 553 | */ |
| 554 | PG_FUNCTION_INFO_V1(sepgsql_setcon); |
| 555 | Datum |
| 556 | sepgsql_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) |
nothing calls this directly
no test coverage detected