Order of Rules

From: Nelio Alves Pereira Filho <nelio(at)ifx(dot)com(dot)br>
To: pgsql-general(at)postgresql(dot)org
Subject: Order of Rules
Date: 2001-01-30 20:20:26
Message-ID: 3A77220A.8649F2EE@ifx.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I read at the docs that rules are executed before the query that
generated them. Is there any way to change this?

Here's my problem: I have two tables, A and B, and after an INSERT on
table A, I want to update an specific field on table B, with the result
of a sum in A. To do this I needed some information about the row just
inserted, so I used rules. As my sum is running before the insertion,
its result is wrong.

Any ideas?

Tks

--
Nelio Alves Pereira Filho
IFX Networks - www.ifx.com.br
+55 11 3365-5863
nelio(at)ifx(dot)com(dot)br

Responses

Browse pgsql-general by date

  From Date Subject
Next Message adb 2001-01-30 20:48:19 Re: Order of Rules
Previous Message Roderick A. Anderson 2001-01-30 20:09:54 Re: design