From: | Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Paul Ramsey <pramsey(at)cleverelephant(dot)ca>, Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>, Michael Paquier <michael(at)paquier(dot)xyz>, Justin Pryzby <pryzby(at)telsasoft(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [PATCH] random_normal function |
Date: | 2023-01-09 16:12:37 |
Message-ID: | CAEZATCU3pf-jYsrih7pa8vF_qePqCGy7dBLJvh9ntJbY=1MfMw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, 9 Jan 2023 at 15:26, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com> writes:
> > So IMO all pseudorandom functions should share the same PRNG state and
> > seed-setting functions. That would mean they should all be in the same
> > (new) C file, so that the PRNG state can be kept private to that file.
>
> I agree with this in principle, but I feel no need to actually reshuffle
> the code before we accept a proposal for such a function that wouldn't
> logically belong in float.c.
>
> > I think it would also make sense to add a new "Random Functions"
> > section to the docs, and move the descriptions of random(),
> > random_normal() and setseed() there.
>
> Likewise, this'll just add confusion in the short run. A <sect1>
> with only three functions in it is going to look mighty odd.
>
OK, that's fair enough, while we're just adding random_normal().
BTW, "UUID Functions" only has 1 function in it :-)
Regards,
Dean
From | Date | Subject | |
---|---|---|---|
Next Message | Vik Fearing | 2023-01-09 16:23:04 | Re: MERGE ... RETURNING |
Previous Message | Pavel Luzanov | 2023-01-09 16:09:19 | psql: Add role's membership options to the \du+ command |