Skip to content

Commit 2fe1b4d

Browse files
committed
In psql, show view definition only with \d+, not with \d
The rationale is that view definitions tend to be long and obscure the main information about the view.
1 parent 9e41114 commit 2fe1b4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/describe.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
1010
*
11-
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.229 2009/10/28 18:09:44 tgl Exp $
11+
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.230 2009/11/03 10:34:47 petere Exp $
1212
*/
1313
#include "postgres_fe.h"
1414

@@ -1306,7 +1306,7 @@ describeOneTableDetails(const char *schemaname,
13061306
printTableAddHeader(&cont, headers[i], true, 'l');
13071307

13081308
/* Check if table is a view */
1309-
if (tableinfo.relkind == 'v')
1309+
if (tableinfo.relkind == 'v' && verbose)
13101310
{
13111311
PGresult *result;
13121312

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy