Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f26Zs-0004vB-Fi for pgsql-committers@arkaria.postgresql.org; Sat, 31 Mar 2018 02:49:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f26Zr-0003Ux-5z for pgsql-committers@arkaria.postgresql.org; Sat, 31 Mar 2018 02:49:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f26Zr-0003Un-0v for pgsql-committers@lists.postgresql.org; Sat, 31 Mar 2018 02:49:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f26Zj-00088L-BW for pgsql-committers@lists.postgresql.org; Sat, 31 Mar 2018 02:49:10 +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 w2V2msda032391; Fri, 30 Mar 2018 22:48:55 -0400 From: Tom Lane To: Teodor Sigaev cc: pgsql-committers@lists.postgresql.org, Fabien COELHO Subject: Re: pgsql: Set random seed for pgbench. In-reply-to: References: Comments: In-reply-to Teodor Sigaev message dated "Mon, 26 Mar 2018 15:26:47 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <32389.1522464534.1@sss.pgh.pa.us> Date: Fri, 30 Mar 2018 22:48:54 -0400 Message-ID: <32390.1522464534@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Teodor Sigaev writes: > Set random seed for pgbench. So this patch has ignored the possibility of not having pg_strong_random. That's moving the portability goalposts in a way that I do not find acceptable for such a marginal feature. What behavior do you think we should have for platforms without that --- accept the seed=rand option but then error out, or not recognize the option at all? BTW, I also note that the patch is constructing error messages from sentence fragments, which is verboten per translatability policy. While that's perhaps not too important as long as we don't have message translations for pgbench, it still seems like something to fix now not later. regards, tom lane