public inbox for [email protected]  
help / color / mirror / Atom feed
From: Heikki Linnakangas <[email protected]>
To: dengkai <[email protected]>
To: pgsql-bugs <[email protected]>
Subject: Re: [bug report] The backend process cannot reuse VfdCache cache entries
Date: Wed, 13 May 2026 16:41:40 +0300
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

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







reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: [bug report] The backend process cannot reuse VfdCache cache entries
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox