pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini
7+ messages / 1 participants
[nested] [flat]

* pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini
@ 2018-09-24 06:04 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Noah Misch @ 2018-09-24 06:04 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d18f6674bd60e923bcdbf0fd916685b0a250c60f

Modified Files
--------------
src/backend/utils/init/miscinit.c | 8 ++++++++
src/bin/initdb/initdb.c           | 3 +++
2 files changed, 11 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini
@ 2018-09-24 06:04 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Noah Misch @ 2018-09-24 06:04 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/89f2b64da370e7b0737760e3282f096591d6518f

Modified Files
--------------
src/backend/utils/init/miscinit.c | 8 ++++++++
src/bin/initdb/initdb.c           | 3 +++
2 files changed, 11 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini
@ 2018-09-24 06:04 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Noah Misch @ 2018-09-24 06:04 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4232cff11b84ddb7440bc2fdc3a5bd6ab0baeea4

Modified Files
--------------
src/backend/utils/init/miscinit.c | 8 ++++++++
src/bin/initdb/initdb.c           | 3 +++
2 files changed, 11 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini
@ 2018-09-24 06:04 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Noah Misch @ 2018-09-24 06:04 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/329cacb902705c44c66098535c61f8e84f6f6ee0

Modified Files
--------------
src/backend/utils/init/miscinit.c | 8 ++++++++
src/bin/initdb/initdb.c           | 3 +++
2 files changed, 11 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini
@ 2018-09-24 06:04 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Noah Misch @ 2018-09-24 06:04 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d68d5adfdcaee2fac5dc47c90373a8813278ca92

Modified Files
--------------
src/backend/utils/init/miscinit.c | 8 ++++++++
src/bin/initdb/initdb.c           | 3 +++
2 files changed, 11 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini
@ 2018-09-24 06:04 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Noah Misch @ 2018-09-24 06:04 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/401228183a63254a8edbded3693124ad466b185b

Modified Files
--------------
src/backend/bootstrap/bootstrap.c | 8 ++++++++
src/backend/tcop/postgres.c       | 8 ++++++++
src/bin/initdb/initdb.c           | 3 +++
3 files changed, 19 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini
@ 2018-09-24 06:04 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Noah Misch @ 2018-09-24 06:04 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL9_3_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/402da7054f34d2c5e3215ca72fc3d08ca2c98090

Modified Files
--------------
src/backend/bootstrap/bootstrap.c | 8 ++++++++
src/backend/tcop/postgres.c       | 8 ++++++++
2 files changed, 16 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2018-09-24 06:04 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-09-24 06:04 pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini Noah Misch <noah@leadboat.com>
2018-09-24 06:04 pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini Noah Misch <noah@leadboat.com>
2018-09-24 06:04 pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini Noah Misch <noah@leadboat.com>
2018-09-24 06:04 pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini Noah Misch <noah@leadboat.com>
2018-09-24 06:04 pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini Noah Misch <noah@leadboat.com>
2018-09-24 06:04 pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini Noah Misch <noah@leadboat.com>
2018-09-24 06:04 pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini Noah Misch <noah@leadboat.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox