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

Started by stanabout 6 years ago2 messagesgeneral
Jump to latest
#1stan
stanb@panix.com

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

#2David G. Johnston
david.g.johnston@gmail.com
In reply to: stan (#1)
Re: How to get the name of the table taht fired a triigger?

On Friday, February 21, 2020, stan <stanb@panix.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.