Re: Trigger Procedure Error: NEW used in query that is not in a rule

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: "Javier Fonseca V(dot)" <fonsecajavier(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Trigger Procedure Error: NEW used in query that is not in a rule
Date: 2007-08-11 19:07:32
Message-ID: 20070811190732.GB7915@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

On Sat, Aug 11, 2007 at 02:45:09AM -0500, Javier Fonseca V. wrote:
> I think that it's working alright except for the next line:

doing this in plpgsql is very complicated (or even impossible assuming
that any table can have the same trigger). i would rather suggest using
pl/perl - writing something like this in pl/perl is very simple.

depesz

--
quicksil1er: "postgres is excellent, but like any DB it requires a
highly paid DBA. here's my CV!" :)
http://www.depesz.com/ - blog dla ciebie (i moje CV)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lew 2007-08-12 11:33:42 Re: Trigger Procedure Error: NEW used in query that is not in a rule
Previous Message Javier Fonseca V. 2007-08-11 18:45:47 Re: Trigger Procedure Error: NEW used in query that is not in a rule

Browse pgsql-sql by date

  From Date Subject
Next Message Andreas Joseph Krogh 2007-08-11 19:45:14 Re: Index usage in order by with multiple columns in order-by-clause
Previous Message hubert depesz lubaczewski 2007-08-11 19:05:22 Re: Index usage in order by with multiple columns in order-by-clause