Re: A problem in inheritance - Mailing list pgsql-general

From Jim Nasby
Subject Re: A problem in inheritance
Date
Msg-id 9500CE34-4019-40E1-9859-34243AEEC261@decibel.org
Whole thread Raw
In response to A problem in inheritance  ("Talha Khan" <talha.amjad@gmail.com>)
Responses Re: A problem in inheritance  ("Talha Khan" <talha.amjad@gmail.com>)
Re: A problem in inheritance  ("Talha Khan" <talha.amjad@gmail.com>)
List pgsql-general
On Jun 20, 2007, at 12:53 PM, Talha Khan wrote:
> THE ACTUAL TEST:
>
>   DROP RULE account_login_no_update ON account_login;
>
>
>   UPDATE account_login set originating_source = 'xxx';
>
>   Now the update should not effect the child table but it does,
> evident
>   from the output of the following query:

That's because you dropped the rule that would have affected that
query. Remember that rules effectively work on the query strings
themselves, so to impact that update you'd have to have a rule on
account_login. No rule on a child table will matter.
--
Jim Nasby                                            jim@nasby.net
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)



pgsql-general by date:

Previous
From: Jim Nasby
Date:
Subject: Re: Dynamic Log tigger (plpgsql)
Next
From: Tom Lane
Date:
Subject: Re: permission denied for schema