Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwCSG-0003bv-NA for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Oct 2016 18:16:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bwCSG-0004Ov-9q for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Oct 2016 18:16:08 +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.84_2) (envelope-from ) id 1bwCQs-0002R3-Bu for pgsql-hackers@postgresql.org; Mon, 17 Oct 2016 18:14:42 +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.84_2) (envelope-from ) id 1bwCQl-0005mY-EQ for pgsql-hackers@postgresql.org; Mon, 17 Oct 2016 18:14:41 +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 u9HIENff004576; Mon, 17 Oct 2016 14:14:23 -0400 From: Tom Lane To: Heikki Linnakangas cc: pgsql-hackers@postgresql.org Subject: Re: Re: [COMMITTERS] pgsql: Replace PostmasterRandom() with a stronger way of generating ran In-reply-to: References: <26591.1476715823@sss.pgh.pa.us> <4f31c7c5-817c-aa3b-ae48-a613008dc558@iki.fi> <28173.1476717663@sss.pgh.pa.us> Comments: In-reply-to Heikki Linnakangas message dated "Mon, 17 Oct 2016 20:48:58 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4574.1476728063.1@sss.pgh.pa.us> Date: Mon, 17 Oct 2016 14:14:23 -0400 Message-ID: <4575.1476728063@sss.pgh.pa.us> X-Pg-Spam-Score: -2.2 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Heikki Linnakangas writes: > I'm going to try implementing prngd support. It seems easy enough, and > prngd can be run on modern systems too, which is important for testing it. OK, if you feel like doing the work. However: > In addition to that, I'm going to see if we can make postmaster to work > sensibly without query cancel keys, if pg_strong_random() fails. This seems like a lot of work, with the "reward" that we'd start getting hard-to-debug reports about query cancel not working. Anytime anyone ever says "cancel didn't seem to work" we'd have to wonder whether there had been a transient failure of pg_strong_random. I think if we're going to refuse to generate weak cancel keys, we should just fail, not silently fall into a functionally degraded state. But in general, I think that being this picky about cancel keys on systems that are too old to have /dev/random is not really helpful to anybody. I don't recall any reports of anyone ever having a DOS situation from weak cancel keys. It's fine to upgrade our practice where it's convenient to do that, but taking away functionality on systems where it's not convenient isn't improving anyone's life. pg_crypto has a different set of tradeoffs and I don't necessarily make the same argument there. I don't feel that cancel keys have to act the same as pg_crypto keys. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers