- 论坛徽章:
- 0
|
数据库报错如下:
2009/02/07 10:55:11
Error - PGRES_FATAL_ERROR
2009/02/07 10:55:11
Error - ERROR: too many trigger records found for relation "user_auth_info"
查看这个表的定义发现trigger非常多,如下:
"RI_ConstraintTrigger_3424557" AFTER DELETE ON user_auth_info FROM city_admin NOT DEFERRABLE INITIALLY IMMEDIATE FOR EACH ROW EX
ECUTE PROCEDURE "RI_FKey_noaction_del"('username_ck', 'city_admin', 'user_auth_info', 'FULL', 'username', 'username')
"RI_ConstraintTrigger_3424558" AFTER UPDATE ON user_auth_info FROM city_admin NOT DEFERRABLE INITIALLY IMMEDIATE FOR EACH ROW EX
ECUTE PROCEDURE "RI_FKey_noaction_upd"('username_ck', 'city_admin', 'user_auth_info', 'FULL', 'username', 'username')
这些触发器都是关于约束检查的,但是我对postgre数据库不熟,表的约束一般都很少,无非是一些外键和主键等约束,为什么系统会建这么多触发器呢?而且这些触发器似乎是dbms自动建的,随着时间的推移,触发器数量会不断的增长。如何解决这个问题? |
|