Tom Lane <[EMAIL PROTECTED]> writes: > Greg Stark <[EMAIL PROTECTED]> writes: > > Maybe it would be better to set attislocal=0 if the attinhcount goes from > > 0->1? > > That just moves the surprises to other cases.
Sure, but if we're not allowing new columns to be created, those surprise cases now include virtually every case. At least for partitioned tables. > I think I'd prefer to err in the direction that can't cause unexpected data > loss (due to columns being dropped that perhaps should not have been). I figured that was the thinking. Perhaps what's really needed is to move away from the idea of automatically deciding whether to drop child columns and never drop child columns unless the user specifies some keyword which would force them to always be dropped. It seems to me that trying to distinguish "locally defined" versus "only inherited" is too subtle a distinction and depends too much on what the user considers a local definition. What's "locally defined" seems to vary depending on the application. -- greg ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly