summaryrefslogtreecommitdiff
path: root/src/include/catalog/pg_proc.dat
diff options
context:
space:
mode:
authorDean Rasheed <dean.a.rasheed@gmail.com>2023-03-14 09:17:36 +0000
committerDean Rasheed <dean.a.rasheed@gmail.com>2023-03-14 09:17:36 +0000
commitd5d574146d71c362852748c82ba8b9c873f5bf24 (patch)
treeb9576eabe4977b350f2df44001c5c2779a7c6803 /src/include/catalog/pg_proc.dat
parent3a465cc6783f586096d9f885c3fc544d82eb8f19 (diff)
downloadpostgresql-d5d574146d71c362852748c82ba8b9c873f5bf24.tar.gz
Add support for the error functions erf() and erfc().
Expose the standard error functions as SQL-callable functions. These are expected to be useful to people working with normal distributions, and we use them here to test the distribution from random_normal(). Since these functions are defined in the POSIX and C99 standards, they should in theory be available on all supported platforms. If that turns out not to be the case, more work will be needed. On all platforms tested so far, using extra_float_digits = -1 in the regression tests is sufficient to allow for variations between implementations. However, past experience has shown that there are almost certainly going to be additional unexpected portability issues, so these tests may well need further adjustments, based on the buildfarm results. Dean Rasheed, reviewed by Nathan Bossart and Thomas Munro. Discussion: https://postgr.es/m/CAEZATCXv5fi7+Vu-POiyai+ucF95+YMcCMafxV+eZuN1B-=MkQ@mail.gmail.com
Diffstat (limited to 'src/include/catalog/pg_proc.dat')
-rw-r--r--src/include/catalog/pg_proc.dat7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/catalog/pg_proc.dat b/src/include/catalog/pg_proc.dat
index 505595620e..fbc4aade49 100644
--- a/src/include/catalog/pg_proc.dat
+++ b/src/include/catalog/pg_proc.dat
@@ -3465,6 +3465,13 @@
proname => 'atanh', prorettype => 'float8', proargtypes => 'float8',
prosrc => 'datanh' },
+{ oid => '8788', descr => 'error function',
+ proname => 'erf', prorettype => 'float8', proargtypes => 'float8',
+ prosrc => 'derf' },
+{ oid => '8789', descr => 'complementary error function',
+ proname => 'erfc', prorettype => 'float8', proargtypes => 'float8',
+ prosrc => 'derfc' },
+
{ oid => '1618',
proname => 'interval_mul', prorettype => 'interval',
proargtypes => 'interval float8', prosrc => 'interval_mul' },