From 1707a0d2aa6b2bcfe78f63836c769943a1a6b9e0 Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Tue, 1 Jan 2019 20:05:51 +0900 Subject: Remove configure switch --disable-strong-random This removes a portion of infrastructure introduced by fe0a0b5 to allow compilation of Postgres in environments where no strong random source is available, meaning that there is no linking to OpenSSL and no /dev/urandom (Windows having its own CryptoAPI). No systems shipped this century lack /dev/urandom, and the buildfarm is actually not testing this switch at all, so just remove it. This simplifies particularly some backend code which included a fallback implementation using shared memory, and removes a set of alternate regression output files from pgcrypto. Author: Michael Paquier Reviewed-by: Tom Lane Discussion: https://postgr.es/m/20181230063219.GG608@paquier.xyz --- doc/src/sgml/installation.sgml | 24 ++++-------------------- doc/src/sgml/monitoring.sgml | 6 +----- 2 files changed, 5 insertions(+), 25 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml index d3326ce182b..3c9544cc27c 100644 --- a/doc/src/sgml/installation.sgml +++ b/doc/src/sgml/installation.sgml @@ -245,8 +245,10 @@ su - postgres You need OpenSSL, if you want to support - encrypted client connections. The minimum required version is - 0.9.8. + encrypted client connections. OpenSSL is + also required for random number generation on platforms that do not + have /dev/urandom (except Windows). The minimum + version required is 0.9.8. @@ -1111,24 +1113,6 @@ su - postgres - - - - - Allow the build to succeed even if PostgreSQL - has no support for strong random numbers on the platform. - A source of random numbers is needed for some authentication - protocols, as well as some routines in the - - module. disables functionality that - requires cryptographically strong random numbers, and substitutes - a weak pseudo-random-number-generator for the generation of - authentication salt values and query cancel keys. It may make - authentication less secure. - - - - diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index 96bcc3a63be..60a85a78981 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -849,7 +849,7 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser - LWLock + LWLock ShmemIndexLock Waiting to find or allocate space in shared memory. @@ -1034,10 +1034,6 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser OldSnapshotTimeMapLock Waiting to read or update old snapshot control information. - - BackendRandomLock - Waiting to generate a random number. - LogicalRepWorkerLock Waiting for action on logical replication worker to finish. -- cgit v1.2.3