Add a transform function for varbit typmod coercisions.
authorRobert Haas <rhaas@postgresql.org>
Tue, 7 Feb 2012 17:41:42 +0000 (12:41 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 7 Feb 2012 17:42:50 +0000 (12:42 -0500)
commitf7d7dade8afe19847510efe44be191c35e1ce26c
tree7fcf4ebc6f73c83acc6875ffc6634581c1c6814b
parent3cc0800829a6dda5347497337b0cf43848da4acf
Add a transform function for varbit typmod coercisions.

This enables ALTER TABLE to skip table and index rebuilds when the
new type is unconstraint varbit, or when the allowable number of bits
is not decreasing.

Noah Misch, with review and a fix for an OID collision by me.
src/backend/utils/adt/varbit.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/utils/varbit.h