]> granicus.if.org Git - postgresql/commit
Add a transform function for numeric typmod coercisions.
authorRobert Haas <rhaas@postgresql.org>
Tue, 7 Feb 2012 17:08:26 +0000 (12:08 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 7 Feb 2012 17:08:26 +0000 (12:08 -0500)
commit3cc0800829a6dda5347497337b0cf43848da4acf
treea489c43476d04b73fe90bac20c274ccc8987bb2f
parentaf7914c6627bcf0b0ca614e9ce95d3f8056602bf
Add a transform function for numeric typmod coercisions.

This enables ALTER TABLE to skip table and index rebuilds when a column
is changed to an unconstrained numeric, or when the scale is unchanged
and the precision does not decrease.

Noah Misch, with a few stylistic changes and a fix for an OID
collision by me.
src/backend/utils/adt/numeric.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/utils/builtins.h