src/bin/psql/command.c
static backslashResult
exec_command_x(PsqlScanState scan_state, bool active_branch)
{
	bool		success = true;

	if (active_branch)
	{
		char	   *opt = psql_scan_slash_option(scan_state,
												 OT_NORMAL, NULL, true);

		success = do_pset("expanded", opt, &pset.popt, pset.quiet);
		free(opt);
	}
	else
		ignore_slash_options(scan_state);

	return success ? PSQL_CMD_SKIP_LINE : PSQL_CMD_ERROR;
}
/*
 * \x -- set or toggle expanded table representation
 */
\x -- set or toggle expanded table representation
\ x -- set or toggle expanded table representation
static backslashResult
exec_command_x(PsqlScanState scan_state, bool active_branch)
{
	bool		success = true;
	if (active_branch)
	{
		char	   *opt = psql_scan_slash_option(scan_state,
												 OT_NORMAL, NULL, true);
		success = do_pset("expanded", opt, &pset.popt, pset.quiet);
		free(opt);
	}
	else
		ignore_slash_options(scan_state);
	return success ? PSQL_CMD_SKIP_LINE : PSQL_CMD_ERROR;
}
static backslashResult exec_command_x ( PsqlScanState scan_state , bool active_branch ) { bool success = true ; if ( active_branch ) { char * opt = psql_scan_slash_option ( scan_state , OT_NORMAL , NULL , true ) ; success = do_pset ( " " , opt , & pset . popt , pset . quiet ) ; free ( opt ) ; } else ignore_slash_options ( scan_state ) ; return success ? PSQL_CMD_SKIP_LINE : PSQL_CMD_ERROR ; }
\x -- set or toggle expanded table representation
\ x -- set or toggle expanded table representation