From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow ALTER TYPE to update an existing type's typsubscript value
Date: Fri, 11 Dec 2020 23:58:39 +0000
Message-ID: <E1knsJ5-0005O8-4j@gemulon.postgresql.org> (raw)
Allow ALTER TYPE to update an existing type's typsubscript value.
This is essential if we'd like to allow existing extension data types
to support subscripting in future, since dropping and recreating the
type isn't a practical thing for an extension upgrade script, and
direct manipulation of pg_type isn't a great answer either.
There was some discussion about also allowing alteration of typelem,
but it's less clear whether that's a good idea or not, so for now
I forebore.
Discussion: https://postgr.es/m/3724341.1607551174@sss.pgh.pa.us
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/8c15a297452e970d68529ee2ce6bd94d84598409
Modified Files
--------------
doc/src/sgml/ref/alter_type.sgml | 8 +++++++
src/backend/commands/typecmds.c | 20 +++++++++++++++++
src/test/regress/expected/create_type.out | 36 ++++++++++++++++---------------
src/test/regress/sql/create_type.sql | 12 ++++++-----
4 files changed, 54 insertions(+), 22 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: Allow ALTER TYPE to update an existing type's typsubscript value
In-Reply-To: <E1knsJ5-0005O8-4j@gemulon.postgresql.org>
References: <E1knsJ5-0005O8-4j@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