Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2fe1b4d

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 themain information about the view.
1 parent9e41114 commit2fe1b4d

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)

[8]ページ先頭

©2009-2025 Movatter.jp