summaryrefslogtreecommitdiff
path: root/src/include/utils/varbit.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2012-02-07 12:41:42 -0500
committerRobert Haas <rhaas@postgresql.org>2012-02-07 12:42:50 -0500
commitf7d7dade8afe19847510efe44be191c35e1ce26c (patch)
tree7fcf4ebc6f73c83acc6875ffc6634581c1c6814b /src/include/utils/varbit.h
parent3cc0800829a6dda5347497337b0cf43848da4acf (diff)
downloadpostgresql-f7d7dade8afe19847510efe44be191c35e1ce26c.tar.gz
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/varbit.h')
-rw-r--r--src/include/utils/varbit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/varbit.h b/src/include/utils/varbit.h
index f268ca5853..52dca8b5d2 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);