Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iTvym-0000Rh-51 for pgsql-bugs@arkaria.postgresql.org; Sun, 10 Nov 2019 22:46:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iTvyk-00044T-KJ for pgsql-bugs@arkaria.postgresql.org; Sun, 10 Nov 2019 22:46:42 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1iTvyj-00044M-0k for pgsql-bugs@lists.postgresql.org; Sun, 10 Nov 2019 22:46:42 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iTvye-0003Jv-LE for pgsql-bugs@lists.postgresql.org; Sun, 10 Nov 2019 22:46:40 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 0BAB5210AC; Sun, 10 Nov 2019 17:46:34 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 10 Nov 2019 17:46:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=z0JB9HcDJ4+XgNQMkhX864854zk bQwy50y4dsrDwVRY=; b=SF70REM/F0ZUdwitW09SAes9nLJrgR+b0/LmXD5nrG0 R+FO4NtdxR64O48Juvqw+NK2VW6oRw6zT3jA5SDKj6Fh7NFp1M+bm0jT6LdCTzFs ZQfSWm5LA5mTfr4iE3aLii82UUZiXPsGC5SnwefSqU5r+HZf1fmEqdH29CA7VAYx Vyl6h3hd1UTaFI1AY/3c6LoVWeSjKX1pz2xXgVdRqMJu8obp1D9AyrveP45G6UYJ 02raJS7sp+aOk63wOIPH5AEV5+fTn56Ea56kWE7XbW8MS1xd1l4O7nAV3XZZ1jbM gn9VnCdBYKiPzg2tbr914gxIR3FPz315DHiLhE7b6jA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=z0JB9H cDJ4+XgNQMkhX864854zkbQwy50y4dsrDwVRY=; b=AKOBAoCHJUiUSDYCYC+pxd Tb6d020e/UxqwhW7TCAFb1H+13rDSv7towpfnQLoI1pVY02tm5OK8vxK3WG2WbVV MyrZHlCYJiCi97MPLqiiZcYx0h9sVip6+7Wa4E6syTRc4gDeQE7l7+OqWviJBIXX 1k/sf9P/WBhMgci++vcarpDCmd6aINcT6X0aDEzg7Iy/NA6XwcM39sZ44YJ8Zche BZoEef5XqHcRybyT7SaAw9u1Xtnso3uqZF6BXYFzj/SGmxo6aS4s5cgwV7pRyrjC dsJbD3KSUWHDZ0q+kDDLrF5jIMZIF8wTbiEklFT50h0eh36S+Vhf4mV4cafO1NSg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedruddviedgtdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucfkphepie ejrdduiedtrddvudekrddvfeejnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgv shesrghnrghrrgiivghlrdguvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-218-237.hsd1.ca.comcast.net [67.160.218.237]) by mail.messagingengine.com (Postfix) with ESMTPA id 83BCA3060061; Sun, 10 Nov 2019 17:46:33 -0500 (EST) Date: Sun, 10 Nov 2019 14:46:31 -0800 From: Andres Freund To: Tomas Vondra Cc: Thomas Munro , James Coleman , PostgreSQL mailing lists Subject: Re: BUG #16104: Invalid DSA Memory Alloc Request in Parallel Hash Message-ID: <20191110224631.uxpfccnql6pxllv2@alap3.anarazel.de> References: <20191110172925.mlkglpwzwego3wtp@development> <20191110212352.5xpzddwjs6fmuv4u@development> <20191110215017.prjisnntwhhppnru@development> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191110215017.prjisnntwhhppnru@development> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-11-10 22:50:17 +0100, Tomas Vondra wrote: > On Sun, Nov 10, 2019 at 10:23:52PM +0100, Tomas Vondra wrote: > > On Mon, Nov 11, 2019 at 10:08:58AM +1300, Thomas Munro wrote: > > Can't we simply compute two hash values, using different seeds - one for > > bucket and the other for batch? Of course, that'll be more expensive. > > Meh, I realized that's pretty much just a different way to get 64-bit > hashes (which is what you mentioned). I'm not sure it's really the same, given practical realities in postgres. Right now the "extended" hash function supporting 64 bit hash functions is optional. So we couldn't unconditionally rely on it being present, even in master, unless we're prepared to declare it as required from now on. So computing two different hash values at the same time, by using a different IV and a different combine function, doesn't seem like an unreasonable approach. Greetings, Andres Freund