Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wAHMd-002EOE-2g for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Apr 2026 01:05:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wAHMc-003b4J-0r for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Apr 2026 01:05:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wAHMb-003b4B-2S for pgsql-hackers@lists.postgresql.org; Wed, 08 Apr 2026 01:05:50 +0000 Received: from fout-a4-smtp.messagingengine.com ([103.168.172.147]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wAHMZ-000000018G4-3yIR for pgsql-hackers@lists.postgresql.org; Wed, 08 Apr 2026 01:05:49 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 5808CEC04CC; Tue, 7 Apr 2026 21:04:56 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Tue, 07 Apr 2026 21:04:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1775610296; x=1775696696; bh=jO8LzInwKu 1o1HjV2a0ELIJ2LZZLHUay9jW7Uk+VVWo=; b=X2oMp4AmYS6g0Zi/b+UmMgq581 euubs7yd5eklKJuAhckVd2Smkz4QyTbh9an9yGoc+oqvHlzsuao5mz3nr5FWZdGT riqb3uY9gXNHc2E+kO8XrTfZCe5dVhASA+AgfZaFdPG3nyE7i2CRmgb9+0HM0pNW Tel3JVlmkU2Iu7CJNv5RERIhBVj3Wf8sb/lGNrAqBzfLwi5KRgVOE9CoYnHaR78w Tuam9sGO5LZo3iXez2ziS2m0ry8u8Utv6hGw+1iv5k0thRJaKgrI/1Pbh9htTsYn IPk9l/VgiF6fNvkwtwaMSHxSWhnBJG5xk9BpS9k1Zy5ZUkw/JJg5MmCgVoHw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1775610296; x=1775696696; bh=jO8LzInwKu1o1HjV2a0ELIJ2LZZLHUay9jW 7Uk+VVWo=; b=hVHFgiRUf+EwG+onVMTvW+EfFnUZB8hR1feqnP3RfIOMT0pz03q AZME924cH+cw8f+p2YK45rTap6YWudcLtejwA+TiQXiF1BMI/ZKrD5VfrRzbxDDK SHYQDxbr6ZE8nvNVl8o7idvzlk8I8liMgqcpdaO1ulV2oCj7bO/PGRhqFut7F5n5 nQvxqxRBCquApZWcBF1OKHZHzDzAlTX7xeLc+27KHPSTX8FS5vjR1G7Z7B74VPqn /h1g3aoWV2A/u2bmmAS+237dSdsRe3sav7XdpemkT08rOaEb3QcbQDXgppIqdAZu OtXIzXGYoVZXUOT7fu4RnynLeYPjDr4JZUg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgddvvddukecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdefhedmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvden ucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquh hivghrrdighiiiqeenucggtffrrghtthgvrhhnpeegffejvefgveduvdejtddvtdeijeeh udeuledvudeftdfgfeejvdekveekiedvvdenucffohhmrghinhepphhoshhtghhrvghsqh hlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidpnhgspghrtghpthhtohephedpmh houggvpehsmhhtphhouhhtpdhrtghpthhtohepshgrmhhimhhsvghihhesghhmrghilhdr tghomhdprhgtphhtthhopegrnhgurhgvshesrghnrghrrgiivghlrdguvgdprhgtphhtth hopehrohgsvghrthhmhhgrrghssehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhq lhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpth htohepthhhohhmrghsrdhmuhhnrhhosehgmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 7 Apr 2026 21:04:54 -0400 (EDT) Date: Wed, 8 Apr 2026 10:04:50 +0900 From: Michael Paquier To: Sami Imseih Cc: Andres Freund , Robert Haas , PostgreSQL Hackers , Thomas Munro Subject: Re: dshash_find_or_insert vs. OOM Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mOK33cRYoYZvlMV1" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --mOK33cRYoYZvlMV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 07, 2026 at 12:00:14PM -0500, Sami Imseih wrote: > My apologies for the late response here. I spent some time looking at > this yesterday and came to the conclusion that we can add dshash tests > to test_dsm_registry, which already allocates a dshash via > GetNamedDSHash(). However, I also realized that the API has a gap: callers > cannot set a size limit on the dshash. I need this for the test, but > more importantly it's a limitation of the API itself. As in dsa_set_size_limit() cannot be set for a dshash currently. Indeed that could be independently useful for some use cases. > So I plan to > target v20 for the tests, as it's likely too late for v19. To start, I've > submitted a patch for allowing callers to set a size limit on a > GetNamedDSHash()-allocated dshash [1]. >=20 > [1] https://commitfest.postgresql.org/patch/6655/ That's too late for v19, at least here. Thanks for pursuing this work. -- Michael --mOK33cRYoYZvlMV1 Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmnVqbIACgkQnvQgOdby QH13LRAAjAQnR6rDphu8197kXpw9e9Q+/Q7bhcPVIqrblrxXJddVLvPh4iA75kRa JGpDZ0O+Ao89Q4C4YAsd1oQNdutL1geX89x3nTFpaVlZltKiVwQPcbbD1NsFuOgd bmj9lrTFOgFG0WLyYCzJkCADXCj/cPH14bIWPF54hspJ2Ee+1/N4gPHZUXm1sUkf TBra6WGuyFu0vemUQeMgmcLgBaB1me4uGYD+UXxIPhCTkfrCjnbw7FJ98KFF/vBD 156NvGtAIcScTYKt+duPXGguQApGuDEV6cdkdRgioaNO5pQdmVFz7vlWaunWyQKq P9VXeX3JxDYDvtrOZ4c44asrbnWj3FaBntLydobvEI7SM4Dl8kGAptNsluD+ohey 7/8ayiMh2nM1C/De3OtdkgUMZrW0NOPilH7fSTOvc6kz8DxncIibZRfa/zQxXiyC TXwVz45twwZwfIrLu4ZN6MHpow8UVZOvxelV58MX8iNmrktFJyg98vlGo6KGOoOZ 9ZA01x0vlJ33oI02BlYLkEweNk6iWmdtxTptnc57oZPKAJcGin5n851HNdulmh/e RAFevoYDqeqiQq8RBC1cpeEaZzIMHJRF+5vaubhqu/jD0THXeXXTz+TbrAMqoedq U11HOo7S7TJX7OrfHuplbRnUz0RJQFYg1n+G665furrPR/ub9Rw= =F7Qx -----END PGP SIGNATURE----- --mOK33cRYoYZvlMV1--