Re: triggers and TriggerData

From: Alan Hodgson <ahodgson(at)simkin(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: triggers and TriggerData
Date: 2007-01-22 16:24:59
Message-ID: 200701220824.59664@hal.medialogik.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Monday 22 January 2007 07:04, Michael Fuhr <mike(at)fuhr(dot)org> wrote:
> You can pass literal string arguments to a trigger function. See
> the CREATE TRIGGER documentation and, for PL/pgSQL, TG_ARGV and
> TG_NARGS. For C see "Writing Trigger Functions in C"; search for
> tgnargs and tgargs.
>
> http://www.postgresql.org/docs/8.2/interactive/sql-createtrigger.html
> http://www.postgresql.org/docs/8.2/interactive/plpgsql-trigger.html
> http://www.postgresql.org/docs/8.2/interactive/trigger-interface.html
>
> (These links are to the 8.2 documentation but earlier versions also
> support arguments to trigger functions.)

I stand corrected. And I can imagine some uses for passing string constants
to triggers, but nothing related to what the OP was looking for ...

--
99 percent of lawyers give the rest a bad name

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2007-01-22 16:25:33 Re: Password encryption method
Previous Message Tom Lane 2007-01-22 16:21:35 Re: Enable/Disable Triggers