Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g1Ix2-0003VH-Ah for pgsql-hackers@arkaria.postgresql.org; Sat, 15 Sep 2018 22:22:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g1Ix0-0002zN-JT for pgsql-hackers@arkaria.postgresql.org; Sat, 15 Sep 2018 22:22:02 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g1Ix0-0002zG-7y for pgsql-hackers@lists.postgresql.org; Sat, 15 Sep 2018 22:22:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g1Iwx-0003YK-Ps for pgsql-hackers@postgresql.org; Sat, 15 Sep 2018 22:22:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w8FMLqXq015556; Sat, 15 Sep 2018 18:21:52 -0400 From: Tom Lane To: Noah Misch cc: Robert Haas , Andres Freund , Andrew Dunstan , "pgsql-hackers@postgresql.org" Subject: Re: Something fishy happening on frogmouth In-reply-to: <20180915221546.GA3159382@rfd.leadboat.com> References: <6557.1383073940@sss.pgh.pa.us> <20131030124734.GA11429@awork2.anarazel.de> <20180915221546.GA3159382@rfd.leadboat.com> Comments: In-reply-to Noah Misch message dated "Sat, 15 Sep 2018 15:15:46 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15554.1537050112.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 15 Sep 2018 18:21:52 -0400 Message-ID: <15555.1537050112@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Noah Misch writes: > Usually, the first srandom() call happens early in PostmasterMain(). I = plan > to add one to InitStandaloneProcess(), which substitutes for several tas= ks > otherwise done in PostmasterMain(). That seems like a good thing even i= f 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. regards, tom lane