1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-08 11:42: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/describe.c,v 1.128 2005/10/20 05:15:09 tgl Exp $
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.129 2005/10/27 13:34:47 momjian Exp $
*/
#include "postgres_fe.h"
#include "describe.h"
@ -703,6 +703,9 @@ describeOneTableDetails(const char *schemaname,
retval = false;
/* This output looks confusing in expanded mode. */
myopt.expanded = false;
initPQExpBuffer(&buf);
initPQExpBuffer(&title);
initPQExpBuffer(&tmpbuf);