pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feedcan trigger monitor two tables?
2+ messages / 2 participants
[nested] [flat]
* can trigger monitor two tables?
@ 2016-11-28 08:59 zhangkai.gis <zhangkai.gis@163.com>
0 siblings, 1 reply; 2+ messages in thread
From: zhangkai.gis @ 2016-11-28 08:59 UTC (permalink / raw)
To: pgsql-performance
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: can trigger monitor two tables?
@ 2016-11-28 10:49 Andreas Kretschmer <akretschmer@spamfence.net>
parent: zhangkai.gis <zhangkai.gis@163.com>
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Kretschmer @ 2016-11-28 10:49 UTC (permalink / raw)
To: pgsql-performance
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
--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2016-11-28 10:49 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-11-28 08:59 can trigger monitor two tables? zhangkai.gis <zhangkai.gis@163.com>
2016-11-28 10:49 ` Andreas Kretschmer <akretschmer@spamfence.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox