Re: [BUG?] strange behavior in ALTER TABLE ... RENAME TO on inherited columns
Kouhei Kaigai <kaigai@ak.jp.nec.com>
From: KaiGai Kohei <kaigai@ak.jp.nec.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Bernd Helmle <mailings@oopsware.de>, Tom Lane <tgl@sss.pgh.pa.us>, KaiGai Kohei <kaigai@kaigai.gr.jp>, pgsql-hackers@postgresql.org, Thom Brown <thombrown@gmail.com>, Alvaro Herrera <alvherre@commandprompt.com>
Date: 2010-01-25T05:29:12Z
Lists: pgsql-hackers
(2010/01/25 14:08), Robert Haas wrote: > 2010/1/24 KaiGai Kohei<kaigai@ak.jp.nec.com>: >> It seems to me the result is different from Bernd's report. > > Well, you tested something different, so you got a different answer. > Your case doesn't have any multiple inheritance. If it tries ALTER TABLE xxx RENAME TO on any multiple inheritance column, this patch will raise an error when it founds the first column unable to rename. (Of course, it takes inconsistency in table definitions, so we need to prevent it.) It does not make sense in performance comparison. The issue is whether we need to check pg_inherits for each recursion level in renameatt(), or not. So, I checked the case when we try to rename the root of inheritance tree. Or, are you saying to test diamond-inheritance cases? Thanks, -- OSS Platform Development Division, NEC KaiGai Kohei <kaigai@ak.jp.nec.com>