Re: INFINITE RECURSION with rules...

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: srdjan <srdjan(dot)matic(at)anche(dot)no>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: INFINITE RECURSION with rules...
Date: 2008-03-23 22:23:39
Message-ID: 20080323222339.GA7431@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2008-03-23 22:38:41 Re: Insert
Previous Message Jaime Casanova 2008-03-23 22:18:30 Re: INFINITE RECURSION with rules...