pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Kretschmer <akretschmer@spamfence.net>
To: pgsql-performance@postgresql.org
Subject: Re: can trigger monitor two tables?
Date: Mon, 28 Nov 2016 11:49:07 +0100
Message-ID: <20161128104907.GA8323@tux> (raw)
In-Reply-To: <61d4c5ab.5323d2.158aa29367a.Coremail.zhangkai.gis@163.com>
References: <61d4c5ab.5323d2.158aa29367a.Coremail.zhangkai.gis@163.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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



view thread (2+ messages)

Message-ID: <20161128104907.GA8323@tux>
Permalink:  ../20161128104907.GA8323@tux/
Also on:    postgresql.org/message-id/20161128104907.GA8323@tux

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: akretschmer@spamfence.net
  Subject: Re: can trigger monitor two tables?
  In-Reply-To: <20161128104907.GA8323@tux>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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