1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-17 06:41:09 +03:00

Disable expanded mode only for \d tablename, not for all backslash

commands.  Per complaint that \df+ is clearer in expanded mode.
This commit is contained in:
Bruce Momjian
2005-10-27 13:34:47 +00:00
parent 69f16b562a
commit 3332e38189
6 changed files with 11 additions and 13 deletions

View File

@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.78 2005/10/15 02:49:40 momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.79 2005/10/27 13:34:47 momjian Exp $
*/
#include "postgres_fe.h"
#include "common.h"
@ -1491,7 +1491,7 @@ printTable(const char *title,
* normal (user-submitted) query, not a table we're printing for a slash
* command.
*/
if (opt->expanded && opt->normal_query)
if (opt->expanded)
use_expanded = true;
else
use_expanded = false;