From: | Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> |
---|---|
To: | Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com> |
Cc: | Daniel Gustafsson <daniel(at)yesql(dot)se>, Peter Eisentraut <peter(at)eisentraut(dot)org>, Michael Paquier <michael(at)paquier(dot)xyz>, Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Joe Conway <mail(at)joeconway(dot)com> |
Subject: | Re: Support getrandom() for pg_strong_random() source |
Date: | 2025-10-13 21:48:53 |
Message-ID: | CAD21AoBn1+qstNdXmB6JjN7Rx9184v11Qsw2s_W0RjzmXtzuUA@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Oct 9, 2025 at 5:11 PM Jacob Champion
<jacob(dot)champion(at)enterprisedb(dot)com> wrote:
>
> On Thu, Oct 9, 2025 at 4:53 PM Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> wrote:
> > Does it mean that we introduce something like pg_fast_random() and
> > packagers can select it as the random number generation function
> > instead of pg_strong_random()? Or can packagers select the function
> > used in pg_strong_random()?
>
> The latter -- packagers should be able to select the implementation of
> pg_strong_random(). I think pg_fast_random() is likely to be a bad
> abstraction if we don't have more use cases to guide it.
Thank you for the clarification.
>
> > All of these sound reasonable to me. I think we can handle this as two
> > separate discussions: one for the UUID implementation changes, and
> > another for the pg_strong_random() modifications (which would cover
> > both the runtime switching for superusers and the compile-time
> > alternatives for packagers).
>
> Sounds good to me. (Which would you like this thread to be?)
I think the second item fits better with the current thread's subject.
Having said that, these two items are somewhat related (for example,
adding getrandom() support would be a common change for both), so
perhaps we can start with the pg_strong_random() changes in this
thread?
Regards,
--
Masahiko Sawada
Amazon Web Services: https://aws.amazon.com
From | Date | Subject | |
---|---|---|---|
Next Message | Chao Li | 2025-10-13 21:51:17 | Re: Fixed a typo in comment in compress_lz4.c |
Previous Message | Masahiko Sawada | 2025-10-13 21:40:31 | Re: Make COPY format extendable: Extract COPY TO format implementations |