Add a transform function for numeric typmod coercisions.

Robert Haas <rhaas@postgresql.org>

Commit: 3cc0800829a6dda5347497337b0cf43848da4acf
Author: Robert Haas <rhaas@postgresql.org>
Date: 2012-02-07T17:08:26Z
Releases: 9.2.0
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.

Files