Re: can trigger monitor two tables?

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: can trigger monitor two tables?
Date: 2016-11-28 10:49:07
Message-ID: 20161128104907.GA8323@tux
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

zhangkai.gis <zhangkai(dot)gis(at)163(dot)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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Marc-Olaf Jaschke 2016-11-30 12:26:16 performance issue with bitmap index scans on huge amounts of big jsonb documents
Previous Message zhangkai.gis 2016-11-28 08:59:37 can trigger monitor two tables?