From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix oversight in ALTER TYPE: typmodin/typmodout must propagate t
Date: Fri, 31 Jul 2020 21:11:39 +0000
Message-ID: <E1k1cJX-0007KV-2L@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Fix oversight in ALTER TYPE: typmodin/typmodout must propagate t
In-Reply-To: <E1k1cJX-0007KV-2L@gemulon.postgresql.org>
References: <E1k1cJX-0007KV-2L@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox