Re: MERGE command for inheritance - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: MERGE command for inheritance
Date
Msg-id 1281448982.19111.3.camel@fsopti579.F-Secure.com
Whole thread Raw
In response to MERGE command for inheritance  (Boxuan Zhai <bxzhai2010@gmail.com>)
List pgsql-hackers
On tis, 2010-08-10 at 17:38 +0800, Boxuan Zhai wrote:
> I am not sure if inheritance of MERGE is needed by postgres.

Yes, it is.

> PS: for my investigation on the inheritance actions, I find that
> although the children tables are modified by the UPDATE or DELETE
> commands on their ancestor tables, the rules defined on them are not
> activated during the query. Is this the case (I hope I am not asking a
> stupid question)? And, if so, I may ask why we want it to act like
> this. 

Your observation is correct.  You could probably argue this way or that
about how it should have been designed 20+ years ago, but this is how it
is.

In general, I wouldn't design new functionality on top of rules.  Rules
are pretty broken in many ways.




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_restore should accept multiple -t switches?
Next
From: Peter Eisentraut
Date:
Subject: Re: host name support in pg_hba.conf