\d table display in psql, I noticed that tableinfo.triggers
is not used once it is set.
Greg Sabino Mullane
*
* 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"
}
/* count triggers */
- if (!error && tableinfo.hasrules)
+ if (!error && tableinfo.triggers)
{
sprintf(buf,
"SELECT t.tgname\n"