From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Fix oversight in ALTER TYPE: typmodin/typmodout must propagate t |
Date: | 2020-07-31 21:11:39 |
Message-ID: | E1k1cJX-0007KV-2L@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
------
REL_13_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/5c439f189bf4bdbb0ff75b2043ca713d76019528
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2020-07-31 22:34:43 | pgsql: Restore lost amcheck TOAST test coverage. |
Previous Message | Tom Lane | 2020-07-31 15:43:50 | pgsql: Fix recently-introduced performance problem in ts_headline(). |