mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user