Re: trigger functions can only be called as triggers

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: trigger functions can only be called as triggers
Date: 2009-08-13 14:36:57
Message-ID: 6946.1250174217@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Is there a reason why the function manager allows calling trigger functions
> outside of triggers and forces the PLs to catch this case themselves? Is
> there a case where calling trigger functions directly is useful?

I think it's a matter of not wanting to slow down *all* function calls
with an error check that's useless for most.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-08-13 14:53:58 Re: schemapg.h
Previous Message Tom Lane 2009-08-13 14:33:37 Re: Alpha 1 release notes