OSDN Git Service

Implement the width_bucket() function, per SQL2003. This commit only adds
authorNeil Conway <neilc@samurai.com>
Fri, 14 May 2004 21:42:30 +0000 (21:42 +0000)
committerNeil Conway <neilc@samurai.com>
Fri, 14 May 2004 21:42:30 +0000 (21:42 +0000)
commit0079547bcbedff2a653204571c3cda22c35907d4
treea39f767c36a3299c57c6a2638b419c15c42b12dd
parent19a495caaa8a0b9b5a1ee9b1b487697cce7e99db
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.
doc/src/sgml/errcodes.sgml
doc/src/sgml/func.sgml
doc/src/sgml/xfunc.sgml
src/backend/utils/adt/numeric.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/utils/builtins.h
src/include/utils/errcodes.h
src/test/regress/expected/numeric.out
src/test/regress/sql/numeric.sql