Re: How to get the name of the table taht fired a triigger?

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: stan <stanb(at)panix(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: How to get the name of the table taht fired a triigger?
Date: 2020-02-21 14:27:08
Message-ID: CAKFQuwY=wXXLZBJMv5ULk4P4B5sF+fnZXWThp-UGERE-NxEb4w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Friday, February 21, 2020, stan <stanb(at)panix(dot)com> wrote:

>
> How can I get the name of the table that fired a trigger, in the function
> called by that trigger?
>

Language specific. Read the language docs. For pl/pgsql:

https://www.postgresql.org/docs/12/plpgsql-trigger.html

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Klaus Darilion 2020-02-21 16:12:44 Logical replication lag in seconds
Previous Message amul sul 2020-02-21 11:50:39 Re: Can we have multiple tablespaces with in a database.