Re: BUG #18297: Error when adding a column to a parent table with complex inheritance
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Alexander Lakhin <exclusion@gmail.com>
Cc: Tender Wang <tndrwang@gmail.com>, Richard Guo <guofenglinux@gmail.com>, pgsql-bugs@lists.postgresql.org
Date: 2024-01-24T06:12:53Z
Lists: pgsql-bugs
On Thu, Jan 18, 2024 at 12:00:01PM +0300, Alexander Lakhin wrote: > Thank you for working on this! Yep, this one is obviously wrong so I have applied and backpatched the fix for tablecmds.c. > (Maybe it's possible to slightly modify an existing hierarchy with tables > a, b, c in inherit.sql for the purpose of the check added.) I was wondering about that, but decided to keep a separate test as suggested as the other tests with inheritance are already tightly linked to their own assumptions, mostly with renames and constraints. -- Michael
Commits
-
Fix ALTER TABLE .. ADD COLUMN with complex inheritance trees
- 2f724283719e 12.18 landed
- bfec14d06de8 13.14 landed
- 5a7833f49679 14.11 landed
- ad6fbbeeb07a 15.6 landed
- 51193e7a7d33 16.2 landed
- bb812ab0917e 17.0 landed