Prev: [HACKERS] More frame options in window functions
Next: [HACKERS] psql tab completion for DO blocks
From: KaiGai Kohei on 1 Feb 2010 21:39 (2010/02/02 11:31), Robert Haas wrote: > 2010/2/1 KaiGai Kohei<kaigai(a)ak.jp.nec.com>: >> (2010/02/02 11:09), Tom Lane wrote: >>> KaiGai Kohei<kaigai(a)ak.jp.nec.com> writes: >>>> The attached one also clean up ATPrepAddColumn() and ATExecAddColumn() code, >>>> not only ATPrepAlterColumnType(), according to what I mentioned above. >>> >>> What exactly do you claim is wrong with the ADD COLUMN case? >> >> ADD COLUMN case works correctly, but it takes unnecessary loops, >> because the find_all_inheritors() didn't provide the value to be >> set on the new pg_attribute.attinhcount. >> >> I'm saying it can be rewritten in more graceful manner using the >> new expected_parents argument. > > The subject line of this thread is getting less and less appropriate > to the content thereof. > > I am not in favor of doing anything for 9.0 that is not a bug fix. Are you talking about ATPrepAddColumn() only? Or both of ATPrepAddColumn() and ATPrepAlterColumnType()? My motivation to clean up ATPrepAddColumn() is less than the bugfix. Thanks, -- OSS Platform Development Division, NEC KaiGai Kohei <kaigai(a)ak.jp.nec.com> -- Sent via pgsql-hackers mailing list (pgsql-hackers(a)postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
From: KaiGai Kohei on 1 Feb 2010 21:55 (2010/02/02 11:44), Robert Haas wrote: > 2010/2/1 KaiGai Kohei<kaigai(a)ak.jp.nec.com>: >> (2010/02/02 11:31), Robert Haas wrote: >>> 2010/2/1 KaiGai Kohei<kaigai(a)ak.jp.nec.com>: >>>> (2010/02/02 11:09), Tom Lane wrote: >>>>> KaiGai Kohei<kaigai(a)ak.jp.nec.com> writes: >>>>>> The attached one also clean up ATPrepAddColumn() and ATExecAddColumn() code, >>>>>> not only ATPrepAlterColumnType(), according to what I mentioned above. >>>>> >>>>> What exactly do you claim is wrong with the ADD COLUMN case? >>>> >>>> ADD COLUMN case works correctly, but it takes unnecessary loops, >>>> because the find_all_inheritors() didn't provide the value to be >>>> set on the new pg_attribute.attinhcount. >>>> >>>> I'm saying it can be rewritten in more graceful manner using the >>>> new expected_parents argument. >>> >>> The subject line of this thread is getting less and less appropriate >>> to the content thereof. >>> >>> I am not in favor of doing anything for 9.0 that is not a bug fix. >> >> Are you talking about ATPrepAddColumn() only? Or both of ATPrepAddColumn() >> and ATPrepAlterColumnType()? >> >> My motivation to clean up ATPrepAddColumn() is less than the bugfix. > > I'm making a general statement - if something is BROKEN (like the > rename case we just dealt with), we should look at fixing it. If it's > just something that could be cleaned up or done more nicely, we should > leave it alone for now. OK, Please forget the second patch. The former patch (pgsql-fix-inherit-attype.1.patch) just fixes the matter in ALTER COLUMN TYPE case. Do you think it is a reasonable change for the 9.0 release? Thanks, -- OSS Platform Development Division, NEC KaiGai Kohei <kaigai(a)ak.jp.nec.com> -- Sent via pgsql-hackers mailing list (pgsql-hackers(a)postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
From: KaiGai Kohei on 2 Feb 2010 18:40 (2010/02/02 23:50), Robert Haas wrote: > 2010/2/1 KaiGai Kohei<kaigai(a)ak.jp.nec.com>: >>> I'm making a general statement - if something is BROKEN (like the >>> rename case we just dealt with), we should look at fixing it. If it's >>> just something that could be cleaned up or done more nicely, we should >>> leave it alone for now. >> >> OK, Please forget the second patch. >> >> The former patch (pgsql-fix-inherit-attype.1.patch) just fixes the matter >> in ALTER COLUMN TYPE case. Do you think it is a reasonable change for >> the 9.0 release? > > After reviewing this, I see that it doesn't really make sense to fix > ALTER COLUMN TYPE without rewriting ADD COLUMN to use > ATSimpleRecursion(). If we're going to go to the trouble of > refactoring the ATPrepCmd() interface, we certainly want to get as > much benefit out of that as we can. > > That having been said... I'm leery about undertaking a substantial > refactoring of this code at this point in the release cycle. We have > less than two weeks remaining before the end of the final CommitFest, > so it doesn't seem like a good time to be starting new projects, > especially because we still have 16 patches that need we need to grind > through in less than 2 weeks, and I want to give some of those my > attention, too. So I would like to push this out to 9.1 and revisit > it when I can give it the amount of time that I believe is needed to > do it right. OK, I'll work on remained part of this fix in the v9.1. Thanks, -- OSS Platform Development Division, NEC KaiGai Kohei <kaigai(a)ak.jp.nec.com> -- Sent via pgsql-hackers mailing list (pgsql-hackers(a)postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
First
|
Prev
|
Pages: 1 2 3 4 Prev: [HACKERS] More frame options in window functions Next: [HACKERS] psql tab completion for DO blocks |