pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix oversight in ALTER TYPE: typmodin/typmodout must propagate t
2+ messages / 1 participants
[nested] [flat]

* pgsql: Fix oversight in ALTER TYPE: typmodin/typmodout must propagate t
@ 2020-07-31 21:11  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2020-07-31 21:11 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Fix oversight in ALTER TYPE: typmodin/typmodout must propagate t
@ 2020-07-31 21:11  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2020-07-31 21:11 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2020-07-31 21:11 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-07-31 21:11 pgsql: Fix oversight in ALTER TYPE: typmodin/typmodout must propagate t Tom Lane <tgl@sss.pgh.pa.us>
2020-07-31 21:11 pgsql: Fix oversight in ALTER TYPE: typmodin/typmodout must propagate t Tom Lane <tgl@sss.pgh.pa.us>

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