Use PostmasterRandom(), not random(), for DSM control segment ID.
Robert Haas <rhaas@postgresql.org>
Use PostmasterRandom(), not random(), for DSM control segment ID. Otherwise, every startup gets the same "random" value, which is definitely not what was intended.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/postmaster.c | modified | +1 −2 |
| src/backend/storage/ipc/dsm.c | modified | +2 −1 |
| src/include/postmaster/postmaster.h | modified | +1 −0 |