diff options
| author | Robert Haas | 2012-02-07 17:41:42 +0000 |
|---|---|---|
| committer | Robert Haas | 2012-02-07 17:42:50 +0000 |
| commit | f7d7dade8afe19847510efe44be191c35e1ce26c (patch) | |
| tree | 7fcf4ebc6f73c83acc6875ffc6634581c1c6814b /src/include/utils | |
| parent | 3cc0800829a6dda5347497337b0cf43848da4acf (diff) | |
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.
Diffstat (limited to 'src/include/utils')
| -rw-r--r-- | src/include/utils/varbit.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/varbit.h b/src/include/utils/varbit.h index f268ca5853d..52dca8b5d29 100644 --- a/src/include/utils/varbit.h +++ b/src/include/utils/varbit.h @@ -72,6 +72,7 @@ extern Datum varbit_send(PG_FUNCTION_ARGS); extern Datum varbittypmodin(PG_FUNCTION_ARGS); extern Datum varbittypmodout(PG_FUNCTION_ARGS); extern Datum bit(PG_FUNCTION_ARGS); +extern Datum varbit_transform(PG_FUNCTION_ARGS); extern Datum varbit(PG_FUNCTION_ARGS); extern Datum biteq(PG_FUNCTION_ARGS); extern Datum bitne(PG_FUNCTION_ARGS); |
