postgresql/src/bin
Noah Misch 89f2b64da3 Initialize random() in bootstrap/stand-alone postgres and in initdb.
This removes a difference between the standard IsUnderPostmaster
execution environment and that of --boot and --single.  In a stand-alone
backend, "SELECT random()" always started at the same seed.

On a system capable of using posix shared memory, initdb could still
conclude "selecting dynamic shared memory implementation ... sysv".
Crashed --boot or --single postgres processes orphaned shared memory
objects having names that collided with the not-actually-random names
that initdb probed.  The sysv fallback appeared after ten crashes of
--boot or --single postgres.  Since --boot and --single are rare in
production use, systems used for PostgreSQL development are the
principal candidate to notice this symptom.

Back-patch to 9.3 (all supported versions).  PostgreSQL 9.4 introduced
dynamic shared memory, but 9.3 does share the "SELECT random()" problem.

Reviewed by Tom Lane and Kyotaro HORIGUCHI.

Discussion: https://postgr.es/m/20180915221546.GA3159382@rfd.leadboat.com
2018-09-23 22:56:42 -07:00
..
initdb Initialize random() in bootstrap/stand-alone postgres and in initdb. 2018-09-23 22:56:42 -07:00
pg_archivecleanup Translation updates 2018-08-06 20:09:07 +02:00
pg_basebackup Revert "Allow concurrent-safe open() and fopen() in frontend code for Windows" 2018-09-18 17:28:27 -04:00
pg_config Translation updates 2018-09-17 08:40:36 +02:00
pg_controldata Translation updates 2018-09-17 08:40:36 +02:00
pg_ctl Translation updates 2018-09-17 08:40:36 +02:00
pg_dump Translation updates 2018-09-17 08:40:36 +02:00
pg_resetwal Translation updates 2018-09-17 08:40:36 +02:00
pg_rewind Translation updates 2018-09-17 08:40:36 +02:00
pg_test_fsync Translation updates 2018-08-06 20:09:07 +02:00
pg_test_timing Translation updates 2018-08-06 20:09:07 +02:00
pg_upgrade Translation updates 2018-09-17 08:40:36 +02:00
pg_verify_checksums Revert "Allow concurrent-safe open() and fopen() in frontend code for Windows" 2018-09-18 17:28:27 -04:00
pg_waldump Translation updates 2018-09-17 08:40:36 +02:00
pgbench Fix pgbench lexer's "continuation" rule to cope with Windows newlines. 2018-09-17 12:11:43 -04:00
pgevent Update copyright for 2018 2018-01-02 23:30:12 -05:00
psql Fix bogus tab-completion rule for CREATE PUBLICATION. 2018-09-21 15:58:37 -04:00
scripts Translation updates 2018-09-17 08:40:36 +02:00
Makefile Allow on-line enabling and disabling of data checksums 2018-04-05 22:04:48 +02:00