Skip to content

Commit a965750

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

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)