diff options
author | Bruce Momjian <bruce@momjian.us> | 2001-10-06 14:41:17 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2001-10-06 14:41:17 +0000 |
commit | a965750abf2504e266e5071dc90365be9485395a (patch) | |
tree | 8a47f26061e8596bdd8b07b78ff2cf9216397008 | |
parent | c3291aed202c48986133a7e6c6db448739e94876 (diff) | |
download | postgresql-a965750abf2504e266e5071dc90365be9485395a.tar.gz postgresql-a965750abf2504e266e5071dc90365be9485395a.zip |
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
-rw-r--r-- | src/bin/psql/describe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c index f53b32c5e84..62fec530e90 100644 --- a/src/bin/psql/describe.c +++ b/src/bin/psql/describe.c @@ -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" |