pgsql: Fix oversight in ALTER TYPE: typmodin/typmodout must propagate t - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix oversight in ALTER TYPE: typmodin/typmodout must propagate t
Date
Msg-id E1k1cJX-0007KU-1i@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3d2376d55c6f2d364a6a1a95cc350c531f6d9423

Modified Files
--------------
src/backend/commands/typecmds.c           | 63 +++++++++++++++++++++++++------
src/test/regress/expected/create_type.out | 16 ++++++++
src/test/regress/sql/create_type.sql      |  8 ++++
3 files changed, 76 insertions(+), 11 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix recently-introduced performance problem in ts_headline().
Next
From: Peter Geoghegan
Date:
Subject: pgsql: Restore lost amcheck TOAST test coverage.