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 1g4KQS-0003IS-RI for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Sep 2018 06:32:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g4KQQ-0006f5-9y for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Sep 2018 06:32:54 +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 1g4KQP-0006dZ-NC for pgsql-hackers@lists.postgresql.org; Mon, 24 Sep 2018 06:32:54 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1g4KQI-0007ft-EQ for pgsql-hackers@postgresql.org; Mon, 24 Sep 2018 06:32:51 +0000 Received: by mail-pg1-x542.google.com with SMTP id g2-v6so719340pgu.11 for ; Sun, 23 Sep 2018 23:32:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=m1v9tpmU3r5bpF244DgVtVu0jD50Pjw0vIlKhrDDEuE=; b=H5TST2dtAB3yihtkchmEFhFoVNLFunLhe/ZcgXXgRpxhFcDpIXfA60QUFvwhuqANeF lfrUiFjFLvwm/B6ic/KdAqS5iyGt7vzz7lrozXvKXXur3SIzCHqpdqqYprZaz/f9yWXO hFUwTUBmncvcpdzu29cmz4ZLoa+Jk4TwZIqSo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=m1v9tpmU3r5bpF244DgVtVu0jD50Pjw0vIlKhrDDEuE=; b=FMN7QsXj/0A/66hTR6G2i//F+J58hknV++8qFvN92pMc0V6ZhxV5R4M4d1i3eyIkYC pf+TYbzvoRWJb3hfg5uUd+SR6Y28k5cyz9RPgK+7LYk79MO3EsyAMS4G7710dJMPbDZ0 t00mINiYmOJM8S+N4qtWl0RwuChRB1SefPVAJDlOdZ8wikl2h/5klbgSm0JGRuSqmo3r JHle0qv2KnLIoReTrmS1TIgIKSbCfrGUAYQGWZX1R/WfiHk2fCW9QK8eZHsIN6J1N+o8 TWofB/qGxLEfTGHnmWRalE5XDKcUa2+mwTSvjYeAE7flbDU1E0V5TP4aYS7L7JMapc42 SjyA== X-Gm-Message-State: APzg51AAl03n9LKUEZ1fzU9oMQz9834ytVigfUYm3uBHqA7zNAPEwFQm +IP71Ct1J7FJvYZqbl3IHlzrfA== X-Google-Smtp-Source: ANB0VdZDO6WAFeiwoTmBIjKIwubFsRfWoMMyhrod+S5HjXQZBj43yzUXZD1lHa4ZDbaYH0w75qEI/A== X-Received: by 2002:a62:c406:: with SMTP id y6-v6mr8927359pff.161.1537770765063; Sun, 23 Sep 2018 23:32:45 -0700 (PDT) Received: from rfd.leadboat.com (c-73-158-248-138.hsd1.ca.comcast.net. [73.158.248.138]) by smtp.gmail.com with ESMTPSA id n26-v6sm36204252pgv.78.2018.09.23.23.32.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Sep 2018 23:32:43 -0700 (PDT) Date: Sun, 23 Sep 2018 23:32:41 -0700 From: Noah Misch To: tgl@sss.pgh.pa.us, Kyotaro HORIGUCHI Cc: robertmhaas@gmail.com, andres@2ndquadrant.com, andrew@dunslane.net, pgsql-hackers@postgresql.org Subject: Re: Something fishy happening on frogmouth Message-ID: <20180924063241.GA3873667@rfd.leadboat.com> References: <20180915221546.GA3159382@rfd.leadboat.com> <15555.1537050112@sss.pgh.pa.us> <20180919.130344.143733188.horiguchi.kyotaro@lab.ntt.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180919.130344.143733188.horiguchi.kyotaro@lab.ntt.co.jp> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 wrote in <15555.1537050112@sss.pgh.pa.us> > > Noah Misch 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.