Re: Having a little trouble with TRIGGERS

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Brendan Green <bgreen(at)simtap(dot)com(dot)au>, pgsql-general(at)postgresql(dot)org
Subject: Re: Having a little trouble with TRIGGERS
Date: 2001-01-24 18:27:34
Message-ID: 200101241827.NAA08794@candle.pha.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.

I just checked to make sure that CURRENT doesn't appear in the current
source as used in rules.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2001-01-24 18:39:24 Re: Problems with foreign key having different type
Previous Message Brett W. McCoy 2001-01-24 18:27:15 Re: Postgres Client other than Linux?