From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Invent random_normal() to provide normally-distributed random nu
Date: Mon, 09 Jan 2023 17:44:17 +0000
Message-ID: <E1pEwC1-002qdg-8y@gemulon.postgresql.org> (raw)
Invent random_normal() to provide normally-distributed random numbers.
There is already a version of this in contrib/tablefunc, but it
seems sufficiently widely useful to justify having it in core.
Paul Ramsey
Discussion: https://postgr.es/m/CACowWR0DqHAvOKUCNxTrASFkWsDLqKMd6WiXvVvaWg4pV1BMnQ@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/38d81760c4d7e22b95252e3545596602c9e38806
Modified Files
--------------
doc/src/sgml/func.sgml | 26 ++++++++++++++++++++-
src/backend/catalog/system_functions.sql | 7 ++++++
src/backend/utils/adt/float.c | 40 ++++++++++++++++++++++++++++----
src/bin/pgbench/pgbench.c | 24 +++----------------
src/common/pg_prng.c | 37 ++++++++++++++++++++++++++++-
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.dat | 4 ++++
src/include/common/pg_prng.h | 1 +
src/test/regress/expected/random.out | 28 ++++++++++++++++++++++
src/test/regress/sql/random.sql | 24 +++++++++++++++++++
10 files changed, 164 insertions(+), 29 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Invent random_normal() to provide normally-distributed random nu
In-Reply-To: <E1pEwC1-002qdg-8y@gemulon.postgresql.org>
References: <E1pEwC1-002qdg-8y@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox