Thread: pgsql: Add a transform function for varbit typmod coercisions.

pgsql: Add a transform function for varbit typmod coercisions.

From
Robert Haas
Date:
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f7d7dade8afe19847510efe44be191c35e1ce26c

Modified Files
--------------
src/backend/utils/adt/varbit.c   |   35 +++++++++++++++++++++++++++++++++++
src/include/catalog/catversion.h |    2 +-
src/include/catalog/pg_proc.h    |    4 +++-
src/include/utils/varbit.h       |    1 +
4 files changed, 40 insertions(+), 2 deletions(-)