mirror of
https://github.com/postgres/postgres.git
synced 2025-07-26 01:22:12 +03:00
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.
This commit is contained in:
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
|
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.229 2009/10/28 18:09:44 tgl Exp $
|
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.230 2009/11/03 10:34:47 petere Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres_fe.h"
|
#include "postgres_fe.h"
|
||||||
|
|
||||||
@ -1306,7 +1306,7 @@ describeOneTableDetails(const char *schemaname,
|
|||||||
printTableAddHeader(&cont, headers[i], true, 'l');
|
printTableAddHeader(&cont, headers[i], true, 'l');
|
||||||
|
|
||||||
/* Check if table is a view */
|
/* Check if table is a view */
|
||||||
if (tableinfo.relkind == 'v')
|
if (tableinfo.relkind == 'v' && verbose)
|
||||||
{
|
{
|
||||||
PGresult *result;
|
PGresult *result;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user