Re: table name firing trigger

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Raphael Bauduin <raphael(dot)bauduin(at)be(dot)easynet(dot)net>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: table name firing trigger
Date: 2004-08-11 14:44:22
Message-ID: 5266.1092235462@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Raphael Bauduin <raphael(dot)bauduin(at)be(dot)easynet(dot)net> writes:
> Does a function executed by a trigger know which table fired the trigger?

Depends what language you're writing the trigger in, but I believe most
of them do. For plpgsql see
http://www.postgresql.org/docs/7.4/static/plpgsql-trigger.html

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Raphael Bauduin 2004-08-11 15:20:16 Re: table name firing trigger
Previous Message Taber, Mark 2004-08-11 14:42:26 Another 'db session' question...