Re: Having a little trouble with TRIGGERS

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Brendan Green" <bgreen(at)simtap(dot)com(dot)au>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Having a little trouble with TRIGGERS
Date: 2001-01-24 16:14:15
Message-ID: 12651.980352855@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Brendan Green" <bgreen(at)simtap(dot)com(dot)au> writes:
> The problem is that when I try to insert a record into the table, I get the
> following error:
> ERROR: CURRENT used in non-rule query.
> I've been banging my head against a brick wall for the past few days. I
> *think* that it has something to do with a problem of "new" being aliased
> somehow with "CURRENT", but I don't know!!! Save me from insanity!

Actually I think CURRENT is an alias for OLD; it may be that the select
from a table named OLD is confusing the thing.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-01-24 16:17:08 Re: [General] Comments
Previous Message Keith Perry 2001-01-24 16:11:34 Re: Inserting and incrementing with MAX aggregate