On Sun, 29 Sep 2002, Tom Lane wrote:
> Hannu Krosing <hannu(at)tm(dot)ee> writes:
> > I'd propose that ADD ONLY would pull topmost attislocal up (reset it
> > from the (grand)child) whereas plain ADD would leave attislocal alone.
>
> ADD ONLY? There is no such animal as ADD ONLY, and cannot be because
> it implies making a parent inconsistent with its children. (Yes, I
> know that the code takes that combination right now, but erroring out
> instead is on the "must fix before release" list. Ditto for RENAME
> ONLY.)
I'm leaving right now and can't participate in the whole discussion, but
I implemented "ADD ONLY" as a way to add the column only in the parent
(all children should already have to column, errors if at least one
doesn't or is different atttype), while "ADD" adds the column to
children that don't have it and merges where already exist; it errors if
children have different atttype etc.
Should I rip the ADD ONLY part out?
--
Alvaro Herrera (<alvherre[(at)]dcc(dot)uchile(dot)cl>)
"Pido que me den el Nobel por razones humanitarias" (Nicanor Parra)