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 1wA6Rk-00245J-17 for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 13:26:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wA6Ri-0003OL-2f for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 13:26:23 +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 1wA6Ri-0003O8-1l for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 13:26:22 +0000 Received: from meesny.iki.fi ([195.140.195.201]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wA6Rg-000000012Pc-2221 for pgsql-hackers@postgresql.org; Tue, 07 Apr 2026 13:26:22 +0000 Received: from [10.0.2.15] (unknown [130.41.208.1]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hlinnaka) by meesny.iki.fi (Postfix) with ESMTPSA id 4fqn5j28dfzyQn; Tue, 07 Apr 2026 16:26:17 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1775568378; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cDNuTezP1Gkk2Mg5BI7uGreCtO/5fx1o4nU1C17kfbY=; b=dshMTF72SCn0o5oiM9ePbLjHD/7OtlJ5C8mYoaN1WG9cCYqISNZiIrY/vDyChFc/7XU61U KlBXyJAWHeFftw0g7nNDMxIwkVZzUyeq7FqaDZhKpj7a5T/zejX6FXB8YHxd9/Bil+ViHo hI1/+hyv3g+lKKcJyh/E3J1/MrD5b80= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1775568378; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cDNuTezP1Gkk2Mg5BI7uGreCtO/5fx1o4nU1C17kfbY=; b=YynI7Qr3ruatR1f/yU8Qp0rmiDwcYRLqpFUfGWHdIFPGF6q+zJXBnK+HRdCw+FD5Bl21/O tdlZNjTR7iaTe3WXTCLZdHOSP/AwrTN9HKuZ1OQcrtzCudpzER81rDmyCjzk6eELKpOZye GffWSvjXIki5s3eKwq81U6Ju9dz60Oc= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi ARC-Seal: i=1; a=rsa-sha256; d=iki.fi; s=meesny; cv=none; t=1775568378; b=aA4f12cT1ZEYlwNhJ42BIqwkA8kIlgrPkVW4BOOdXfvaYa1vqKYXh+w1SftARezxm8RbYa /EBCRYdOtPuZ5A61fwOUAQAGcPqDuq31Iy1JUU6HEtDtucBVE0BW9UnfeEaKXW+bRHTdVW u0aHOsk7x2pz9nbN1S8hIZPsFXUcel4= Message-ID: <4297b4ee-5248-415f-ae12-abf2a23f4ab6@iki.fi> Date: Tue, 7 Apr 2026 16:26:16 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Better shared data structure management and resizable shared data structures To: =?UTF-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= Cc: Ashutosh Bapat , Robert Haas , Andres Freund , pgsql-hackers , chaturvedipalak1911@gmail.com References: <8a6799be-bd42-49fb-8914-856c97bb1977@iki.fi> <113724ab-0028-493f-9605-6e8570f0939f@iki.fi> <791c3f18-f4de-4d84-ac6b-c7ccc074dd38@iki.fi> <9d919bd9-94dd-4bda-8ccf-ebced4178c53@iki.fi> <470e7ebe-0971-49f6-8e46-9b8f6395f88b@iki.fi> <87y0iz2c1v.fsf@wibble.ilmari.org> Content-Language: en-US From: Heikki Linnakangas In-Reply-To: <87y0iz2c1v.fsf@wibble.ilmari.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 07/04/2026 15:24, Dagfinn Ilmari Mannsåker wrote: > Heikki Linnakangas writes: > >> Those are now committed, and here's a new version rebased over those >> changes. > > I noticed this bit during my habitual morning skim of new commits: > >> diff --git a/src/backend/utils/misc/injection_point.c b/src/backend/utils/misc/injection_point.c >> index c06b0e9b800..9981d6e212f 100644 >> --- a/src/backend/utils/misc/injection_point.c >> +++ b/src/backend/utils/misc/injection_point.c >> @@ -17,6 +17,7 @@ >> */ >> #include "postgres.h" >> >> +#include "storage/subsystems.h" >> #include "utils/injection_point.h" >> >> #ifdef USE_INJECTION_POINTS >> @@ -109,6 +110,11 @@ typedef struct InjectionPointCacheEntry >> >> static HTAB *InjectionPointCache = NULL; >> >> +#ifdef USE_INJECTION_POINTS >> +static void InjectionPointShmemRequest(void *arg); >> +static void InjectionPointShmemInit(void *arg); >> +#endif >> + > > This is already inside an `#ifdef USE_INJECTION_POINTS` guard (in fact > visible at the end of the previous diff hunk), no need for another one. Fixed, thanks. I also noticed that the #include "storage/subsystems.h" can be moved inside the #ifdef block; fixed that too. - Heikki