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.94.2) (envelope-from ) id 1uHjd1-008ViV-HM for pgsql-bugs@arkaria.postgresql.org; Wed, 21 May 2025 13:37:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uHjd0-0072Bb-7L for pgsql-bugs@arkaria.postgresql.org; Wed, 21 May 2025 13:37:02 +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.94.2) (envelope-from ) id 1uHjTs-006v9S-RU for pgsql-bugs@lists.postgresql.org; Wed, 21 May 2025 13:27:36 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uHjTq-00092i-02 for pgsql-bugs@lists.postgresql.org; Wed, 21 May 2025 13:27:35 +0000 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-ad5740dd20eso544636966b.0 for ; Wed, 21 May 2025 06:27:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=deepbluecap-com.20230601.gappssmtp.com; s=20230601; t=1747834052; x=1748438852; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Cdy2k9VxzN+XADGWmU7f1AT3uHYMSnMNrUtr/ub1y8o=; b=vmLXkkem7HwRfzWOQeA5MQKoElF7SxiRuUIbf5O0jrZ1SuKQwmm00+nGjQp0puZldO 0OKMbblU4cOXmks5CSzrubrlzsRO1nEtJEPLnV+H/iTwGjFL78s4oYThAHj3MTxTgR0O BHWvoSO0yf09u1PvTs/q71WXGLYVlH/qjabVZo5pp9Kap1AobVXPVtQDbdb+f4lRMKAG KC+l9gmmtngVtjy3PVaeS9ZMTbmeVtiSeaB+l5wS5VeSHPGQn4gnsq8zl0bJ85ZYtbnj fvB6ItycKyNv9pZqIhDII7p+K7Y4uuL2Cw/N/DtbegZQmog6TL7LgtxGkzHJ2WPfBu4J Q42w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747834052; x=1748438852; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Cdy2k9VxzN+XADGWmU7f1AT3uHYMSnMNrUtr/ub1y8o=; b=gn9wqFU1PCFx8iXEF1oCwsRUb60nO+d3xQVOfLvuIi9BBRKT6Mtzo7TaFXjl3NZhBk asNCqNIc1jRfQXazyEgYaDQ4TVtbICs7cmmUmQmo/V3gt6bTRtBFrxuGhPKnkrrSo4rg SznvQC8shNRn7ptzlAaySVU1v6w2bMCTrp00dniniWiKcHvhV89yfIvHT+WDIJoRd4uG 91Cjid8ZG5u6xXOQhhuPu9SiI5UrfuwYB06vq984gFIrg+yMZLvmkQqipSn31RIolguh RyowRx+j1+lSVQinnU60y9BR995sUanIOMus7O9BQZ2itpTEkLRjFAj0Qx2Ch8sLBe2U iD1Q== X-Gm-Message-State: AOJu0Yy9Y10IYGmUz93wh8Vyq8iHZJTxlwYnPfbAcNsWMMpwOpb0kEaQ 2eBUICcN1WCyUehhg4IKgXKDpxJotOlfoj+QJ1Xocm8l5Xl2OdRSvf3MvtU1eDwCtUA= X-Gm-Gg: ASbGncuf5IVry61eH2HIrFtDRElnExI/b7XKQPLxeu0oNYDni7vOU/lvTcfeaddViRe ZoNujJs2ESJZiRjbMWA1Wj5Xsd8Mc+K9O6ZqoklX71SM6EJ2JSDekuZ2nhP9dP9V9VQ4edqmU28 eFQIBYd9wJUSUZZm7kt5G9scE/vwngOmNnHcLUMOm55GhTt6WQOnNCXsI9hfF80LnKdaAIhdKHI aoLSpDPbrnUvGHTSSb4aWB/8UO/7gzCuQXJ6MzZO6TPmrO1258qdTjQ4vUsPpx4zDXpREn72HmA n/RHQtRBBfQp+Wdx+RK1mXoCX8kBg++BVZnLI097Ij1usk41hYZsv/CROQG9KYjSRRZ+Q3WbkIr gAFiUtTA5GKnfJMEA1Ak+nt+PN/CvsklHuGQsLg== X-Google-Smtp-Source: AGHT+IHtgZlHETVnmEEr67aGBhSpB4pm0uNlRcsTU1JbGaCpyzMwJcD2pX1GYuLs1za/jqsWf5ov3w== X-Received: by 2002:a17:907:2d2a:b0:ad5:1e70:7145 with SMTP id a640c23a62f3a-ad52d4e746dmr1969093866b.22.1747834052517; Wed, 21 May 2025 06:27:32 -0700 (PDT) Received: from [192.168.57.201] (92-111-21-226.static.v4.ziggozakelijk.nl. [92.111.21.226]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ad52d04e680sm894491866b.37.2025.05.21.06.27.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 May 2025 06:27:32 -0700 (PDT) Message-ID: <75edd9d3-d861-4dd0-b190-180cc034ceba@deepbluecap.com> Date: Wed, 21 May 2025 15:27:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Logical replication 'invalid memory alloc request size 1585837200' after upgrading to 17.5 To: "Hayato Kuroda (Fujitsu)" , 'Amit Kapila' Cc: "pgsql-bugs@lists.postgresql.org" , Sawada Masahiko References: <680bdaf6-f7d1-4536-b580-05c2760c67c6@deepbluecap.com> Content-Language: en-US From: Duncan Sands 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 > Based on the analysis, I created a PoC which avoids the repalloc(). > Invalidation messages distributed by SnapBuildDistributeSnapshotAndInval() are > skipped to add in the list, just queued - repalloc can be skipped. Also, the function > distributes messages only in the list, so received messages won't be sent again. > > Now a patch for PG17 is created for testing purpose. Duncan, can you apply this and > confirms whether the issue can be solved? Thanks Hayato Kuroda, will do, however it may take a few days. Best wishes, Duncan.