pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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-0007KU-1i@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
------
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(-)



view thread (2+ messages)

Message-ID: <E1k1cJX-0007KU-1i@gemulon.postgresql.org>
Permalink:  ../E1k1cJX-0007KU-1i@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1k1cJX-0007KU-1i@gemulon.postgresql.org

 · 

reply

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-0007KU-1i@gemulon.postgresql.org>
  References: <E1k1cJX-0007KU-1i@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