Fix oversight in ALTER TYPE: typmodin/typmodout must propagate to arrays.
Tom Lane <tgl@sss.pgh.pa.us>
Fix oversight in ALTER TYPE: typmodin/typmodout must propagate to arrays. If a base type supports typmods, its array type does too, with the same interpretation. Hence changes in pg_type.typmodin/typmodout must be propagated to the array type. While here, improve AlterTypeRecurse to not recurse to domains if there is nothing we'd need to change. Oversight in fe30e7ebf. Back-patch to v13 where that came in.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/typecmds.c | modified | +52 −11 |
| src/test/regress/expected/create_type.out | modified | +16 −0 |
| src/test/regress/sql/create_type.sql | modified | +8 −0 |