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

Function exec_command_x

src/bin/psql/command.c:2724–2741  ·  view source on GitHub ↗

* \x -- set or toggle expanded table representation */

Source from the content-addressed store, hash-verified

2722 * \x -- set or toggle expanded table representation
2723 */
2724static backslashResult
2725exec_command_x(PsqlScanState scan_state, bool active_branch)
2726{
2727 bool success = true;
2728
2729 if (active_branch)
2730 {
2731 char *opt = psql_scan_slash_option(scan_state,
2732 OT_NORMAL, NULL, true);
2733
2734 success = do_pset("expanded", opt, &pset.popt, pset.quiet);
2735 free(opt);
2736 }
2737 else
2738 ignore_slash_options(scan_state);
2739
2740 return success ? PSQL_CMD_SKIP_LINE : PSQL_CMD_ERROR;
2741}
2742
2743/*
2744 * \z -- list table privileges (equivalent to \dp)

Callers 1

exec_commandFunction · 0.85

Calls 2

do_psetFunction · 0.85
ignore_slash_optionsFunction · 0.85

Tested by

no test coverage detected