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

Function exec_command_crosstabview

src/bin/psql/command.c:676–695  ·  view source on GitHub ↗

* \crosstabview -- execute a query and display results in crosstab */

Source from the content-addressed store, hash-verified

674 * \crosstabview -- execute a query and display results in crosstab
675 */
676static backslashResult
677exec_command_crosstabview(PsqlScanState scan_state, bool active_branch)
678{
679 backslashResult status = PSQL_CMD_SKIP_LINE;
680
681 if (active_branch)
682 {
683 int i;
684
685 for (i = 0; i < lengthof(pset.ctv_args); i++)
686 pset.ctv_args[i] = psql_scan_slash_option(scan_state,
687 OT_NORMAL, NULL, true);
688 pset.crosstab_flag = true;
689 status = PSQL_CMD_SEND;
690 }
691 else
692 ignore_slash_options(scan_state);
693
694 return status;
695}
696
697/*
698 * \d* commands

Callers 1

exec_commandFunction · 0.85

Calls 1

ignore_slash_optionsFunction · 0.85

Tested by

no test coverage detected