src/bin/psql/command.c
static backslashResult
exec_command_crosstabview(PsqlScanState scan_state, bool active_branch)
{
	backslashResult status = PSQL_CMD_SKIP_LINE;

	if (active_branch)
	{
		int			i;

		for (i = 0; i < lengthof(pset.ctv_args); i++)
			pset.ctv_args[i] = psql_scan_slash_option(scan_state,
													  OT_NORMAL, NULL, true);
		pset.crosstab_flag = true;
		status = PSQL_CMD_SEND;
	}
	else
		ignore_slash_options(scan_state);

	return status;
}
/*
 * \crosstabview -- execute a query and display results in crosstab
 */
\crosstabview -- execute a query and display results in crosstab
\ crosstabview -- execute a query and display results in crosstab
static backslashResult
exec_command_crosstabview(PsqlScanState scan_state, bool active_branch)
{
	backslashResult status = PSQL_CMD_SKIP_LINE;
	if (active_branch)
	{
		int			i;
		for (i = 0; i < lengthof(pset.ctv_args); i++)
			pset.ctv_args[i] = psql_scan_slash_option(scan_state,
													  OT_NORMAL, NULL, true);
		pset.crosstab_flag = true;
		status = PSQL_CMD_SEND;
	}
	else
		ignore_slash_options(scan_state);
	return status;
}
static backslashResult exec_command_crosstabview ( PsqlScanState scan_state , bool active_branch ) { backslashResult status = PSQL_CMD_SKIP_LINE ; if ( active_branch ) { int i ; for ( i = 0 ; i < lengthof ( pset . ctv_args ) ; i ++ ) pset . ctv_args [ i ] = psql_scan_slash_option ( scan_state , OT_NORMAL , NULL , true ) ; pset . crosstab_flag = true ; status = PSQL_CMD_SEND ; } else ignore_slash_options ( scan_state ) ; return status ; }
\crosstabview -- execute a query and display results in crosstab
\ crosstabview -- execute a query and display results in crosstab