pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How to get the name of the table taht fired a triigger?
2+ messages / 2 participants
[nested] [flat]

* How to get the name of the table taht fired a triigger?
@ 2020-02-21 10:42 stan <stanb@panix.com>
  2020-02-21 14:27 ` Re: How to get the name of the table taht fired a triigger? David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: stan @ 2020-02-21 10:42 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org


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





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: How to get the name of the table taht fired a triigger?
  2020-02-21 10:42 How to get the name of the table taht fired a triigger? stan <stanb@panix.com>
@ 2020-02-21 14:27 ` David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: David G. Johnston @ 2020-02-21 14:27 UTC (permalink / raw)
  To: stan <stanb@panix.com>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

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.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2020-02-21 14:27 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-02-21 10:42 How to get the name of the table taht fired a triigger? stan <stanb@panix.com>
2020-02-21 14:27 ` David G. Johnston <david.g.johnston@gmail.com>

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