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

Function echo_hidden_hook

src/bin/psql/startup.c:987–1006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

985}
986
987static bool
988echo_hidden_hook(const char *newval)
989{
990 Assert(newval != NULL); /* else substitute hook messed up */
991 if (pg_strcasecmp(newval, "noexec") == 0)
992 pset.echo_hidden = PSQL_ECHO_HIDDEN_NOEXEC;
993 else
994 {
995 bool on_off;
996
997 if (ParseVariableBool(newval, NULL, &on_off))
998 pset.echo_hidden = on_off ? PSQL_ECHO_HIDDEN_ON : PSQL_ECHO_HIDDEN_OFF;
999 else
1000 {
1001 PsqlVarEnumError("ECHO_HIDDEN", newval, "on, off, noexec");
1002 return false;
1003 }
1004 }
1005 return true;
1006}
1007
1008static bool
1009on_error_rollback_hook(const char *newval)

Callers

nothing calls this directly

Calls 3

pg_strcasecmpFunction · 0.85
ParseVariableBoolFunction · 0.85
PsqlVarEnumErrorFunction · 0.85

Tested by

no test coverage detected