Re: Delete rules and functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Wiebe Cazemier <halfgaar(at)gmx(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Delete rules and functions
Date: 2007-06-26 20:50:12
Message-ID: 28442.1182891012@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Wiebe Cazemier <halfgaar(at)gmx(dot)net> writes:
> I have the following scenerio:

> a rule on a view which executes a function by means of a select call, which in
> turn deletes from a table which has on-delete rules on it. When the function
> is called from the rule, the subsequent delete call in the function doesn't
> cause the on-delete rules on the table to be taken into account.

Please provide an example, because the rewriter is most certainly
applied to queries from functions.

I suspect you are actually being burnt by some other effect, like a row
disappearing from the view as soon as its underlying data is deleted.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Wiebe Cazemier 2007-06-26 21:37:11 Re: Delete rules and functions
Previous Message Andrej Ricnik-Bay 2007-06-26 19:52:33 Re: yet another simple SQL question