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 1vpq2J-00H8xH-0I for pgsql-committers@arkaria.postgresql.org; Tue, 10 Feb 2026 15:52:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vpq2H-00G1kF-2u for pgsql-committers@arkaria.postgresql.org; Tue, 10 Feb 2026 15:52:21 +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 1vpq2H-00G1k7-29 for pgsql-committers@lists.postgresql.org; Tue, 10 Feb 2026 15:52:21 +0000 Received: from meesny.iki.fi ([2001:67c:2b0:1c1::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 1vpq2F-00000001T5U-2bwl for pgsql-committers@lists.postgresql.org; Tue, 10 Feb 2026 15:52:20 +0000 Received: from [10.0.2.15] (unknown [130.41.208.2]) (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 4f9R013dV5zyW5; Tue, 10 Feb 2026 17:52:17 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1770738737; 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=cpQycsKLSGqwfYPvIbxEc69r6nJg3NDEWLcu6Sc6KRI=; b=zF0BWlr2xet+09oLJv9AgTlI6UC9thr5nvrWyoa5K1DIgex2249OICobhyL2q9R4NxrLlJ fAvbvq09/vFaFDzpYRgp7Vy11Y3oLT8Egtv5h6Su1bd2d65Z1KW4l2207UaWVMtDd8qwi0 XE4cviiWm9IQU7dHzKyy4v+QkqQCRSY= ARC-Seal: i=1; a=rsa-sha256; d=iki.fi; s=meesny; cv=none; t=1770738737; b=TnMj8BhIvaoIRCHbTULKTuWSegrGRZaqNiK2sTCmrGua12leXgocnhpN5Qw/PdMeYXHYC5 EN1CIvOii6aP80VwOH9+srNRFYoAdfjTY1gF4pScdu+UcQsO/PK57VxrYcfNFUvbYtm9IN bZQVUXRHdRECxkrtdJvrONH/5ejTVsA= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1770738737; 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=cpQycsKLSGqwfYPvIbxEc69r6nJg3NDEWLcu6Sc6KRI=; b=i1iYZ2cl13AmKVrDKH+pIkG4quGbfLn1nAl11ZousnZSIln25jV7B8rprtawtgs2wXfns+ XtgpeVLWXNQSw3owE1nwwGs8S1WdL3oEoJcJj0zb/TzTUtvk8ZK8fOPhJu6tRKnhjmOQ+o EuSEKqPmUDd5/ejLk5A3GwbpH4btDl0= Message-ID: Date: Tue, 10 Feb 2026 17:52:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pgsql: Separate RecoveryConflictReasons from procsignals To: Bertrand Drouvot Cc: pgsql-committers@lists.postgresql.org References: Content-Language: en-US From: Heikki Linnakangas In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/02/2026 17:19, Bertrand Drouvot wrote: > Hi, > > On Tue, Feb 10, 2026 at 02:32:37PM +0000, Heikki Linnakangas wrote: >> Separate RecoveryConflictReasons from procsignals >> >> Share the same PROCSIG_RECOVERY_CONFLICT flag for all recovery >> conflict reasons. To distinguish, have a bitmask in PGPROC to indicate >> the reason(s). > > I did not look at the thread, so sorry to be late, but that makes the size of PGPROC > going from 832 to 840 bytes, so not a multiple of 64 anymore. Is that something > to worry about? (same kind of discussion in [1]). > > [1]: https://postgr.es/m/tw53roer2j4quxh7vlyv62drc5fo6c6zdltvl6d2dttqa62uhi%40stwlpdwlftpj Right, that's a fair question. I hope the cache line alignment is not critical for performance, because the alignment is completely accidental today. I checked the size on different versions: master: 840 (after this commit) v18: 832 v17: 888 v14-v16: 880 So v18 was the outlier in that it happened to be 64-byte aligned. If there's a performance reason to keep have it be aligned - and maybe there is - we should pad it explicitly. - Heikki