gamma() and lgamma() functions
Dean Rasheed <dean.a.rasheed@gmail.com>
From: Dean Rasheed <dean.a.rasheed@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-07-01T10:33:35Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Add support for gamma() and lgamma() functions.
- a3b6dfd41069 18.0 landed
Attachments
- gamma-and-lgamma.patch (text/x-patch) patch
Attached is a patch adding support for the gamma and log-gamma functions. See, for example: https://en.wikipedia.org/wiki/Gamma_function I think these are very useful general-purpose mathematical functions. They're part of C99, and they're commonly included in other mathematical libraries, such as the python math module, so I think it's useful to make them available from SQL. The error-handling for these functions seems to be a little trickier than most, so that might need further discussion. Regards, Dean