pgsql: Add a transform function for varbit typmod coercisions.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add a transform function for varbit typmod coercisions.
Date: 2012-02-07 17:43:09
Message-ID: E1Rup4P-0001ft-Iq@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2012-02-07 18:57:30 pgsql: Support fls().
Previous Message Robert Haas 2012-02-07 17:08:48 pgsql: Add a transform function for numeric typmod coercisions.