Re: can trigger monitor two tables? - Mailing list pgsql-performance

From Andreas Kretschmer
Subject Re: can trigger monitor two tables?
Date
Msg-id 20161128104907.GA8323@tux
Whole thread Raw
In response to can trigger monitor two tables?  ("zhangkai.gis"<zhangkai.gis@163.com>)
List 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


pgsql-performance by date:

Previous
From: "zhangkai.gis"
Date:
Subject: can trigger monitor two tables?
Next
From: Marc-Olaf Jaschke
Date:
Subject: performance issue with bitmap index scans on huge amounts of big jsonb documents