Re: Something fishy happening on frogmouth
Noah Misch <noah@leadboat.com>
From: Noah Misch <noah@leadboat.com>
To: tgl@sss.pgh.pa.us, Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Cc: robertmhaas@gmail.com, andres@2ndquadrant.com, andrew@dunslane.net, pgsql-hackers@postgresql.org
Date: 2018-09-24T06:32:41Z
Lists: pgsql-hackers
On Wed, Sep 19, 2018 at 01:03:44PM +0900, Kyotaro HORIGUCHI wrote: > Thank you for finding and fixing this. > > At Sat, 15 Sep 2018 18:21:52 -0400, Tom Lane <tgl@sss.pgh.pa.us> wrote in <15555.1537050112@sss.pgh.pa.us> > > Noah Misch <noah@leadboat.com> writes: > > > Usually, the first srandom() call happens early in PostmasterMain(). I plan > > > to add one to InitStandaloneProcess(), which substitutes for several tasks > > > otherwise done in PostmasterMain(). That seems like a good thing even if DSM > > > weren't in the picture. Also, initdb needs an srandom() somewhere; > > > choose_dsm_implementation() itself seems fine. Attached. > > > > +1, but some comments would be good. > +1, too. Thanks for reviewing. I pushed with some comments.
Commits
-
Initialize random() in bootstrap/stand-alone postgres and in initdb.
- 402da7054f34 9.3.25 landed
- 401228183a63 9.4.20 landed
- d68d5adfdcae 9.5.15 landed
- 89f2b64da370 11.0 landed
- 4232cff11b84 10.6 landed
- 329cacb90270 9.6.11 landed
- d18f6674bd60 12.0 landed
-
Modify dynamic shared memory code to use Size rather than uint64.
- d2aecaea1555 9.4.0 cited