创建表时执行触发器 [英] execute a trigger when I create a table
本文介绍了创建表时执行触发器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道在创建表时是否可以在PostgreSQL系统表上执行触发器
I would like to know if a trigger on a system table of PostgreSQL can be executed when I create a table
我需要在每个表上添加2个函数我的数据库,我想动态地完成它
I need to add 2 functions on each table of my database and I would like to do it dynamically
谢谢
推荐答案
我知道这是一个古老的问题,但是现在已经在9.3版中实现,或者至少是
http://www.postgresql.org/docs/9.3/static/event-trigger-definition.html
I know it's an old question but now it has been implemented in version 9.3, or at least partially http://www.postgresql.org/docs/9.3/static/event-trigger-definition.html
这篇关于创建表时执行触发器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文