]> granicus.if.org Git - postgresql/commitdiff
While playing around with trying to add foreign keys to the
authorBruce Momjian <bruce@momjian.us>
Sat, 6 Oct 2001 14:41:17 +0000 (14:41 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 6 Oct 2001 14:41:17 +0000 (14:41 +0000)
\d table display in psql, I noticed that tableinfo.triggers
is not used once it is set.

Greg Sabino Mullane

src/bin/psql/describe.c

index f53b32c5e84960afb5916165f6313313f2d3be8b..62fec530e90111a2f51b7dceca3da5ece15d965a 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright 2000 by PostgreSQL Global Development Group
  *
- * $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.39 2001/08/21 16:36:05 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.40 2001/10/06 14:41:17 momjian Exp $
  */
 #include "postgres_fe.h"
 #include "describe.h"
@@ -793,7 +793,7 @@ describeTableDetails(const char *name, bool desc)
                }
 
                /* count triggers */
-               if (!error && tableinfo.hasrules)
+               if (!error && tableinfo.triggers)
                {
                        sprintf(buf,
                                        "SELECT t.tgname\n"