Re: ATTACH PARTITION seems to ignore column generation status
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Amit Langote <amitlangote09@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org,
Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Date: 2023-01-11T20:58:11Z
Lists: pgsql-hackers
Amit Langote <amitlangote09@gmail.com> writes: > I've updated your disallow-generated-child-columns-2.patch to do this, > and have also merged the delta post that I had attached with my last > email, whose contents you sound to agree with. Pushed with some further work to improve the handling of multiple- inheritance cases. We still need to insist that all or none of the parent columns are generated, but we don't have to require their generation expressions to be alike: that can be resolved by letting the child table override the expression, much as we've long done for plain default expressions. (This did need some work in pg_dump after all.) I'm pretty happy with where this turned out. regards, tom lane
Commits
-
Fix check for child column generation status matching parent.
- a0fa18cc0d6e 16.0 landed
-
Doc: fix silly thinko in 8bf6ec3ba.
- d93d68aeeaee 16.0 landed
-
Improve handling of inherited GENERATED expressions.
- 8bf6ec3ba3a4 16.0 landed
-
Fix calculation of which GENERATED columns need to be updated.
- ad38e2f89116 13.10 landed
- 8cd190e13a22 14.7 landed
- 3f7836ff651a 16.0 landed
- 3706cc97aa36 15.2 landed