pgsql: Use PostmasterRandom(), not random(), for DSM control segment ID

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Use PostmasterRandom(), not random(), for DSM control segment ID
Date: 2016-09-20 16:32:54
Message-ID: E1bmNyY-0007S4-Hl@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use PostmasterRandom(), not random(), for DSM control segment ID.

Otherwise, every startup gets the same "random" value, which is
definitely not what was intended.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/470d886c32efafa1b068b5ca48afafc2198c68d4

Modified Files
--------------
src/backend/postmaster/postmaster.c | 3 +--
src/backend/storage/ipc/dsm.c | 3 ++-
src/include/postmaster/postmaster.h | 1 +
3 files changed, 4 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2016-09-20 16:56:18 pgsql: Re-add translation markers that were lost
Previous Message Robert Haas 2016-09-20 16:14:36 pgsql: Retry DSM control segment creation if Windows indicates access d