git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 653aa60) | patch
Allow ALTER TYPE to update an existing type's typsubscript value.
2020年12月11日 23:07:02 +0000 (18:07 -0500)
2020年12月11日 23:58:21 +0000 (18:58 -0500)
commit 8c15a297452e970d68529ee2ce6bd94d84598409
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
doc/src/sgml/ref/alter_type.sgml diff | blob | blame | history
src/backend/commands/typecmds.c diff | blob | blame | history
src/test/regress/expected/create_type.out diff | blob | blame | history
src/test/regress/sql/create_type.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /