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 1w8KgU-000Qnu-11 for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Apr 2026 16:14:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w8KgS-006m59-2d for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Apr 2026 16:14:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w8KgS-006m51-1i for pgsql-hackers@lists.postgresql.org; Thu, 02 Apr 2026 16:14:16 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w8KgQ-00000000E4W-17eU for pgsql-hackers@postgresql.org; Thu, 02 Apr 2026 16:14:16 +0000 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-43b95e5b3afso673255f8f.3 for ; Thu, 02 Apr 2026 09:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775146448; cv=none; d=google.com; s=arc-20240605; b=hgkRAjeTGgT7afyn9ap8zgU3JK8pScP6ZT7jVGkc4Y2d9wcF7URGdhkBvTzd2ni86P iHjw1vKL7ki3XHwbGWQaOz0blqUWreMHIyMj8pnLhDfh11OA8hxzB5XcTDTlhcQ7z5NH bi1Z9WDlKg292gqJ1w77Q/1DAYNKP26q2pNM5QXF9o4HYMKOhI7cyjDUwKGAEhziRh8E 1PjbIKGnLK7aDj7ZBWG5vfnhnt8+khrivOJMT7Cmbap/UK68f9OBrFxoIBprea6hQqnd Bv32Keebfg2xZf6vMxb4WnvyMvzFazJ3qgZk/nrmeh1whVdn8Zv7sXcuMRyM/puQqB/3 Isiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=QQkGeJODGEDFaBhKrBrnYadU4JM2cSiCdiFNvtWpLSU=; fh=cnvJmlnJ8Ho23L9/RTE0AWPUREhPzMbmMJFHL9EixXc=; b=br7rAyxh5iJr3H89tV3kn7X/PzvBy6r3sGIT7j7A4s5HOHUgckm9VPcvRU2OPp6JPP 4qvYPrwwoVazab5N36UbU52O7k2jasRhc3TSShsBV62m6tR9AjpSuWwc2cjCpywSYv+S kDIEOw+DGgSvw/mluemy3Phv4BbUX3RoOX00xH80r/tBsGtzi9G0h3cj1md/q8kg4ESK gt4s6epXe2Wp6buxgLr/T7elvnvoaV7GGdH1kpAnm1JzgKuW7Rhc25ur4LKDZo1FyTyD ZFX5uzkYydsPBTjHiCphYJmW4AZUC94pNzLolbFbpTb2mRVxCgmXnXqIoSbPjCvYPcjj NmWg==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775146448; x=1775751248; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=QQkGeJODGEDFaBhKrBrnYadU4JM2cSiCdiFNvtWpLSU=; b=h0piVazRZCPALBxTcWCXUlrQppdjIdHb/2R4TLGMUnjypJKpi6z9APr1KSq2VE5RJ0 59n0hRToOfjcWeIwvXNu6+0Z1dR0yfMnEdX8BeEHYubkgG6AergEODVmr3cs/Xw8MB2Q doKIOpZFJSDl5DCSqw4dj8L81fVD44upnVQqGxhqFKqAiy81OXGOoWSP+Xb1Bkyt6NxC Z3wuhGcye5jN6Qn8lnD6uMorH/TYMg568HYNXdbcvDEZx75HmBhfhpjlZ19QyGK4azzj kau6b9viNQBeSMO6RtZLrAaocCBnFGXDYsbOwoZZHm4LE0p+oOy7QiETbYI46eiBNB7p fp8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775146448; x=1775751248; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=QQkGeJODGEDFaBhKrBrnYadU4JM2cSiCdiFNvtWpLSU=; b=DehkXElqx7jqiJqFnXmFsu7WOvRhtZeArVmjPJ8DtQAE5QLL75W9wZYXm40PGkon8y ngMnB25oSjTLpUzlvlNkvMOql+ewQGXDuabgRbrj5dBJdNz8SKnZS2ugpoqg52S0Giv1 GaJs5L+6drB3NXq5JiB61P6C062I2CH/zcpKBPk+d7FC5T9f8UMdY4pyewx8ysr34Ie1 ITudnoWdX8Fs2z+KtxQ2A/1certbEjq7KFe0htvFGWJdxU5ZPghXV2Mi3UMydEdbgKsz R2XXOXMXzOFZBi1mmcef3/8IEeFC0Z0cUdKCawE576sTAB7Ayp3j24Evn4YthDSM6fFb 1ClA== X-Forwarded-Encrypted: i=1; AJvYcCWbo84sVXnyOxWXKI1J+EpY0/STy7ZipzDSCAK+Q/HKyLV3aDWVyPnyk+r2RjoBEJ1DUxE7rwYbkoOIJ06Y@postgresql.org X-Gm-Message-State: AOJu0Yz1WaB2G31KRn4Ftm1G/4VtR+ZGSz2zEFH93oNndCbYUTLjppy4 +U5XM29ypoEc2CBOxCQIOb0FDGEv2QhKFszu3MAq4UBiOdONDw0N2DjM+VCT3eWbhavpQLcG3C9 DQaO5r3NSyrU4Bu02aBNuusW1m5dMiII= X-Gm-Gg: AeBDiesAkBgjHX2AMlxT5zb8PxqtoNyk6oLSRXq7F8R2K8xIpfdTCCY6Ae0Ne/dqcEs sjzqZJ7xhCnScKdp8rbdYI7t4mKpMj/cNAVegaA5edQDvAO2fvlqcD0EX3CgvZ+MqxyYNVtaLYQ gQES6Y7Ma3mw4lGW+ZF/cLfq0Kcvl+9vsbKAVuxn8skb8EKy3Snz7FMyGyXhhMVT0yKB135QACu Wdj7/JGrmxR0rZiJhgt8q6WOAn94X7fYZxckO0ggC1j8Y+qHJORM9uctXpEEwnxYTSFmYzcs3o8 J8TJJp4KWLin6/TOxBQe9vfdohZJYBdY8OrywJZq/pEdAB/e1Q== X-Received: by 2002:a5d:5888:0:b0:43c:f4df:9247 with SMTP id ffacd0b85a97d-43d150fb2ecmr16011979f8f.51.1775146447583; Thu, 02 Apr 2026 09:14:07 -0700 (PDT) MIME-Version: 1.0 References: <01ab1d41-3eda-4705-8bbd-af898f5007f1@iki.fi> <2981bb36-6bbe-4bdc-9a94-29b1114c79bd@vondra.me> <3026ec05-f664-4ebe-8bf6-0a1218b234ec@iki.fi> <19945803-6bcc-40fe-a14a-7dc5c462ed80@iki.fi> <83e37829-0d94-49b2-ad48-5feb7b5d5e44@iki.fi> In-Reply-To: <83e37829-0d94-49b2-ad48-5feb7b5d5e44@iki.fi> From: Ashutosh Bapat Date: Thu, 2 Apr 2026 21:43:49 +0530 X-Gm-Features: AQROBzBDWqnPYl6CmhqGPt0xyhmPigm8F3AZ8-egqEO1mWGCWvH_RmUuj-kZGvQ Message-ID: Subject: Re: Shared hash table allocations To: Heikki Linnakangas Cc: Tomas Vondra , "pgsql-hackers@postgresql.org" , Robert Haas , Rahila Syed Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Apr 2, 2026 at 7:44=E2=80=AFPM Heikki Linnakangas = wrote: > > > I think we should highlight the change in default in the release notes > > though. The users which use default configuration will notice an > > increase in the memory. If they are using a custom value, they will > > think of bumping it up. Can we give them some ballpark % by which they > > should increase their max_locks_per_transaction? E.g. double the > > number or something? > > I don't think people who are using the defaults will notice. I'm worried > about the people who have set max_locks_per_transactions manually, and > now effectively get less lock space for the same setting. Yeah, doubling > the previous value is a good rule of thumb. Users who have set max_locks_per_transaction to a non-default value but have tuned their application to respect those limits are safe even after this change, since their lock hash table never used wiggle room. Those users who weren't careful to respect those limits will need to bump their setting. I think the release notes should "nudge" all the users who use non-default max_locks_per_transaction to increase it if they see "out of memory" errors. I don't think it should provide a blanket advise to double their locks --=20 Best Wishes, Ashutosh Bapat