pgsql: Add a transform function for varbit typmod coercisions. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Add a transform function for varbit typmod coercisions.
Date
Msg-id E1Rup4P-0001ft-Iq@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Add a transform function for numeric typmod coercisions.
Next
From: Robert Haas
Date:
Subject: pgsql: Support fls().