Re: Trigger function is not called

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bill <pg(at)dbginc(dot)com>
Cc: PgSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Trigger function is not called
Date: 2008-08-26 02:41:40
Message-ID: 17366.1219718500@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bill <pg(at)dbginc(dot)com> writes:
> I removed the domain from the category_id and version columns leaving
> the following table, trigger function and trigger. The trigger function
> is still not called when I insert a new row. Any other ideas?

You're still expecting the trigger to get invoked before any constraints
are enforced (the NOT NULLs being the problem here, I think). Again,
you can enforce things through a trigger or through a table constraint,
but mixing and matching won't work too well.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bill 2008-08-26 02:53:53 Re: Trigger function is not called
Previous Message Scott Marlowe 2008-08-26 02:36:34 Re: Easy upgrade on Cpanel *without* downtime