Add support for gamma() and lgamma() functions.
authorDean Rasheed <dean.a.rasheed@gmail.com>
Wed, 26 Mar 2025 09:35:53 +0000 (09:35 +0000)
committerDean Rasheed <dean.a.rasheed@gmail.com>
Wed, 26 Mar 2025 09:35:53 +0000 (09:35 +0000)
commita3b6dfd410699a19209be3cb3c7a74e5ff1da830
tree7e98bdbab647c59a2091eaa170d49df0221a2489
parent7c82b4f711877b175142bb2b2a6e2c2ee2429441
Add support for gamma() and lgamma() functions.

These are useful general-purpose math functions which are included in
POSIX and C99, and are commonly included in other math libraries, so
expose them as SQL-callable functions.

Author: Dean Rasheed <dean.a.rasheed@gmail.com>
Reviewed-by: Stepan Neretin <sncfmgg@gmail.com>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Dmitry Koval <d.koval@postgrespro.ru>
Reviewed-by: Alexandra Wang <alexandra.wang.oss@gmail.com>
Discussion: https://postgr.es/m/CAEZATCXpGyfjXCirFk9au+FvM0y2Ah+2-0WSJx7MO368ysNUPA@mail.gmail.com
doc/src/sgml/func.sgml
src/backend/utils/adt/float.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat
src/test/regress/expected/float8.out
src/test/regress/sql/float8.sql