Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cBJX3-0000N6-Qd for pgsql-performance@arkaria.postgresql.org; Mon, 28 Nov 2016 10:51:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cBJX2-0000Tz-M7 for pgsql-performance@arkaria.postgresql.org; Mon, 28 Nov 2016 10:51:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cBJVM-00070z-00 for pgsql-performance@postgresql.org; Mon, 28 Nov 2016 10:49:48 +0000 Received: from mailout01.ims-firmen.de ([213.174.32.96]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cBJVI-0007yj-VO for pgsql-performance@postgresql.org; Mon, 28 Nov 2016 10:49:46 +0000 Received: from mailin01.ims-firmen.de ([192.168.1.141]) by mailout01.ims-firmen.de with esmtp (envelope-from ) id 1cBJVH-0008LC-gf for pgsql-performance@postgresql.org; Mon, 28 Nov 2016 11:49:43 +0100 Received: from [217.235.224.20] (helo=a-kretschmer.de) by mailin01.ims-firmen.de with esmtpsa (TLSv1:AES256-SHA:256) (envelope-from ) id 1cBJV6-0005Kl-25 for pgsql-performance@postgresql.org; Mon, 28 Nov 2016 11:49:43 +0100 Received: from kretschmer by a-kretschmer.de with local (Exim 4.69) (envelope-from ) id 1cBJUh-0002CS-QA for pgsql-performance@postgresql.org; Mon, 28 Nov 2016 11:49:07 +0100 Date: Mon, 28 Nov 2016 11:49:07 +0100 From: Andreas Kretschmer To: pgsql-performance@postgresql.org Subject: Re: can trigger monitor two tables? Message-ID: <20161128104907.GA8323@tux> References: <61d4c5ab.5323d2.158aa29367a.Coremail.zhangkai.gis@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <61d4c5ab.5323d2.158aa29367a.Coremail.zhangkai.gis@163.com> X-OS: Debian/GNU Linux - weil ich es mir Wert bin! X-GPG-Fingerprint: EE16 3C01 7B9C 10F7 2C8B 3B86 4DB3 D9EE 7F45 84DA X-Message-Flag: "Windows" is not the answer. "Windows" is the question and the answer is "no"! X-Lugdd: Gerd Kube X-Info: My name is root. Just root. And I am licensed to kill -9 User-Agent: Mutt/1.5.18 (2008-05-17) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org zhangkai.gis 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