aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/builtins.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2012-02-07 12:08:26 -0500
committerRobert Haas <rhaas@postgresql.org>2012-02-07 12:08:26 -0500
commit3cc0800829a6dda5347497337b0cf43848da4acf (patch)
treea489c43476d04b73fe90bac20c274ccc8987bb2f /src/include/utils/builtins.h
parentaf7914c6627bcf0b0ca614e9ce95d3f8056602bf (diff)
downloadpostgresql-3cc0800829a6dda5347497337b0cf43848da4acf.tar.gz
postgresql-3cc0800829a6dda5347497337b0cf43848da4acf.zip
Add a transform function for numeric typmod coercisions.
This enables ALTER TABLE to skip table and index rebuilds when a column is changed to an unconstrained numeric, or when the scale is unchanged and the precision does not decrease. Noah Misch, with a few stylistic changes and a fix for an OID collision by me.
Diffstat (limited to 'src/include/utils/builtins.h')
-rw-r--r--src/include/utils/builtins.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h
index 68179d550f8..2c331ce5eb9 100644
--- a/src/include/utils/builtins.h
+++ b/src/include/utils/builtins.h
@@ -913,6 +913,7 @@ extern Datum numeric_recv(PG_FUNCTION_ARGS);
extern Datum numeric_send(PG_FUNCTION_ARGS);
extern Datum numerictypmodin(PG_FUNCTION_ARGS);
extern Datum numerictypmodout(PG_FUNCTION_ARGS);
+extern Datum numeric_transform(PG_FUNCTION_ARGS);
extern Datum numeric (PG_FUNCTION_ARGS);
extern Datum numeric_abs(PG_FUNCTION_ARGS);
extern Datum numeric_uminus(PG_FUNCTION_ARGS);