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 1wN9qW-000cJT-2F for pgsql-bugs@arkaria.postgresql.org; Wed, 13 May 2026 13:41:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wN9qV-00910T-0c for pgsql-bugs@arkaria.postgresql.org; Wed, 13 May 2026 13:41:55 +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 1wN9qU-00910L-2h for pgsql-bugs@lists.postgresql.org; Wed, 13 May 2026 13:41:55 +0000 Received: from lahtoruutu.iki.fi ([185.185.170.37]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wN9qS-00000000NEu-0QAA for pgsql-bugs@lists.postgresql.org; Wed, 13 May 2026 13:41:54 +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 lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4gFvkz0CbFz49PsJ; Wed, 13 May 2026 16:41:46 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1778679707; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=W5aiktWTVJPuzLL0nnmpXJWSKK4IddQtCASC9MQGPjs=; b=ZyHrlwzO7IlCYVeNFMqzsEi5ySihYUR3/vceIBnkrhWuDvGE37mCEf5BEeCZ1MnUVGlWl5 Nb3zXSQxkSzl1+DsqIrqtfh3f716PB4XLF7T4l9K0vR3DWpuH1iEb8PW5cUgZX8AnlzRdr cMtMimWqp8eH+lhbozTijR+oha9Oq7dQV9oe8EsLNRxDjm7xnI5gD/aj9AMyIbrXhn2vQg pbHUZDlOP99Tgx2s0egoI1vTMxKtD7IQfhl/XY+O/Vsy0B4a7OijWpZV/C83D7qYvV2eef oYKblAWJAuFmzrzIbjOTW7AEwD15f4NFmDcDA520xloBO2PuuZIhyntAk9h3CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1778679707; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=W5aiktWTVJPuzLL0nnmpXJWSKK4IddQtCASC9MQGPjs=; b=RIxtKzFgpq+6HE+FjkkbUl5nVAAr9QFJuZJpkRQTAdnc9edEXKL2G947lkKYCz67KNqZUX rRfYYdbBTiGS+utD0zrWMgehXeCHf5rDn8IqK344TK7CjAsVaUhH05LXTX0EEB6bWy+7AJ r7bp4X7G/IeWaRKY3dUfqcZR28+DgrVZ6cpAGuZOWp12DTWK1/o0EEnmeLdMeZSSKBN1Qr JyWc7pwm9xtLI33sFUJHGQdu3xKX3992oky0eTemxHjADPYY+TJ8tEwVRH+Kd/telzlbso kYE9dUKwvO2JC/DTDMmoU98rO2uYvl+InVsSKiNN7Goyujpp5no0V4zjVUNrEA== 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=lahtoruutu; cv=none; t=1778679707; b=nnoUbsf5/gpZLMmV/W/nfF6C2prO8mPq35Naj8qjrUGiUjwvOnuKO2JdCbIACgCUH9ZdPe 2VCUEbIpvW2NLwexP1X9/CMPv3/RhOSSoaN5Tb9OMOyAm/wGUBwVM2kl0LT/KD4iK4zu9k 9J8njpKYIu1LbYmn+yVfKsnnY/AMf+3vBuJtC53TklhPbWlgG48JqekYEZ8OX4ixL5zCXt zhkLExQ4Ut2BJXcaOHpGOcWAV5I+yLKQn3/Py9PUHQD1pMNms6ImGuinDKUmvkMUa37hLx vrEzhj9wX4d9VDbls0inlBDpHydQ7xPrfqU6z8WboJONAt32wotiBDY7hE8gTg== Message-ID: <2bfc54cd-b11c-4a2e-8c9c-2e977bfd74c5@iki.fi> Date: Wed, 13 May 2026 16:41:40 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [bug report] The backend process cannot reuse VfdCache cache entries To: dengkai <784523565@qq.com>, pgsql-bugs 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 13/05/2026 16:06, dengkai wrote: > Recently, in a production environment, we encountered the following SQL > error: > `ERROR: dn_6001_6002: dn_6011_6012: invalid memory alloc request size > 1174405120 in fd.cpp:1094` > Based on this error message, the database was trying to allocate a > VfdCache of size 1174405120 bytes, which exceeds the maximum allowable > memory space `maxCacheSize` for a single allocation. There is no file called "fd.cpp" or variable called "maxCacheSize" in PostgreSQL. There is code like that in fd.c to expand the VfdCache, but it uses realloc() for the allocation, which can go beyond the 1 GB limit. In other words, you've hit a bug on something other than PostgreSQL. - Heikki