-
- Downloads
Implement the width_bucket() function, per SQL2003. This commit only adds
a variant of the function for the 'numeric' datatype; it would be possible to add additional variants for other datatypes, but I haven't done so yet. This commit includes regression tests and minimal documentation; if we want developers to actually use this function in applications, we'll probably need to document what it does more fully.
Showing
- doc/src/sgml/errcodes.sgml 6 additions, 1 deletiondoc/src/sgml/errcodes.sgml
- doc/src/sgml/func.sgml 11 additions, 1 deletiondoc/src/sgml/func.sgml
- doc/src/sgml/xfunc.sgml 8 additions, 8 deletionsdoc/src/sgml/xfunc.sgml
- src/backend/utils/adt/numeric.c 141 additions, 8 deletionssrc/backend/utils/adt/numeric.c
- src/include/catalog/catversion.h 2 additions, 2 deletionssrc/include/catalog/catversion.h
- src/include/catalog/pg_proc.h 3 additions, 1 deletionsrc/include/catalog/pg_proc.h
- src/include/utils/builtins.h 2 additions, 1 deletionsrc/include/utils/builtins.h
- src/include/utils/errcodes.h 2 additions, 1 deletionsrc/include/utils/errcodes.h
- src/test/regress/expected/numeric.out 51 additions, 0 deletionssrc/test/regress/expected/numeric.out
- src/test/regress/sql/numeric.sql 46 additions, 0 deletionssrc/test/regress/sql/numeric.sql
Loading
Please register or sign in to comment