| From: | Noah Misch <noah(at)leadboat(dot)com> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Remove optimization for RAND_poll() failing. |
| Date: | 2020-07-25 21:52:47 |
| Message-ID: | E1jzS63-0006R8-1S@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Remove optimization for RAND_poll() failing.
The loop to generate seed data will exit on RAND_status(), so we don't
need to handle the case of RAND_poll() failing separately. Failures
here are rare, so this a code cleanup, essentially.
Daniel Gustafsson, reviewed by David Steele and Michael Paquier.
Discussion: https://postgr.es/m/9B038FA5-23E8-40D0-B932-D515E1D8F66A@yesql.se
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/15e441972276e95639f8c3d9f5f66c2318fe9348
Modified Files
--------------
src/port/pg_strong_random.c | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2020-07-26 07:33:10 | pgsql: Tweak behavior of pg_stat_activity.leader_pid |
| Previous Message | Tom Lane | 2020-07-25 20:34:48 | pgsql: Improve performance of binary COPY FROM through better buffering |