Re: INFINITE RECURSION with rules... - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: INFINITE RECURSION with rules...
Date
Msg-id 20080323222339.GA7431@alvh.no-ip.org
Whole thread Raw
In response to INFINITE RECURSION with rules...  (srdjan <srdjan.matic@anche.no>)
List pgsql-general
srdjan wrote:

> /*
> *My goal is to calculate and insert automatically the value of "tot"
> when I insert a row into table b.*
> */

Use a trigger.  It's a lot simpler.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-general by date:

Previous
From: "Jaime Casanova"
Date:
Subject: Re: INFINITE RECURSION with rules...
Next
From: Adrian Klaver
Date:
Subject: Re: Insert