Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j55my-0003IY-12 for pgsql-general@arkaria.postgresql.org; Fri, 21 Feb 2020 10:44:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j55lx-0003kR-4C for pgsql-general@arkaria.postgresql.org; Fri, 21 Feb 2020 10:43:05 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1j55lw-0003kK-Qr for pgsql-general@lists.postgresql.org; Fri, 21 Feb 2020 10:43:04 +0000 Received: from mailbackend.panix.com ([166.84.1.89]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j55lp-00078W-NW for pgsql-general@lists.postgresql.org; Fri, 21 Feb 2020 10:43:04 +0000 Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mailbackend.panix.com (Postfix) with ESMTP id 48P7Mf6c3gz1H1W for ; Fri, 21 Feb 2020 05:42:54 -0500 (EST) Received: by panix5.panix.com (Postfix, from userid 17622) id 48P7Mf5CGhzfYm; Fri, 21 Feb 2020 05:42:54 -0500 (EST) Date: Fri, 21 Feb 2020 05:42:54 -0500 From: stan To: pgsql-general@lists.postgresql.org Subject: How to get the name of the table taht fired a triigger? Message-ID: <20200221104254.GA4119@panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Editor: gVim List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk How can I get the name of the table that fired a trigger, in the function called by that trigger? -- "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin