Thread: can trigger monitor two tables?
Hello all,
I can monitor a table use triger write in language C as the example in postgres document .But I don't know whether or not can a trigger monitor more than one table?Is there a example?
Thanks,
zhangkai
2016-11-28
zhangkai
zhangkai.gis <zhangkai.gis@163.com> wrote: > Hello all, > I can monitor a table use triger write in language C as the example in > postgres document .But I don't know whether or not can a trigger monitor more > than one table?Is there a example? i hope i understand you ... you can use the same trigger-function for more than one table, but a TRIGGER is per table, you have to define the trigger for every table. Regards, Andreas Kretschmer -- Andreas Kretschmer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services