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

Commita965750

Browse files
committed
While playing around with trying to add foreign keys to the
\d table display in psql, I noticed that tableinfo.triggersis not used once it is set.Greg Sabino Mullane
1 parentc3291ae commita965750

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
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.39 2001/08/21 16:36:05 tgl Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.40 2001/10/06 14:41:17 momjian Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"describe.h"
@@ -793,7 +793,7 @@ describeTableDetails(const char *name, bool desc)
793793
}
794794

795795
/* count triggers */
796-
if (!error&&tableinfo.hasrules)
796+
if (!error&&tableinfo.triggers)
797797
{
798798
sprintf(buf,
799799
"SELECT t.tgname\n"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp