OSDN Git Service

Allow new values to be added to an existing enum type.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 25 Oct 2010 03:04:37 +0000 (23:04 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 25 Oct 2010 03:05:41 +0000 (23:05 -0400)
commit84c123be1de8a9955741e20c9f945571e40c545e
tree6ea497e47ec62ef8e1ee83b9acfe1fcd2b2419d6
parent24b29ca8f9dc4a5e5f873f0fcb56438c526700f6
Allow new values to be added to an existing enum type.

After much expenditure of effort, we've got this to the point where the
performance penalty is pretty minimal in typical cases.

Andrew Dunstan, reviewed by Brendan Jurd, Dean Rasheed, and Tom Lane
23 files changed:
contrib/pg_upgrade/function.c
contrib/pg_upgrade_support/pg_upgrade_support.c
doc/src/sgml/catalogs.sgml
doc/src/sgml/ref/alter_type.sgml
src/backend/catalog/pg_enum.c
src/backend/commands/typecmds.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/parser/gram.y
src/backend/tcop/utility.c
src/backend/utils/adt/enum.c
src/backend/utils/cache/typcache.c
src/bin/pg_dump/pg_dump.c
src/bin/psql/describe.c
src/include/catalog/catversion.h
src/include/catalog/indexing.h
src/include/catalog/pg_enum.h
src/include/commands/typecmds.h
src/include/nodes/nodes.h
src/include/nodes/parsenodes.h
src/include/utils/typcache.h
src/test/regress/expected/enum.out
src/test/regress/sql/enum.sql