* \x -- set or toggle expanded table representation */
| 2722 | * \x -- set or toggle expanded table representation |
| 2723 | */ |
| 2724 | static backslashResult |
| 2725 | exec_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) |
no test coverage detected