Re: BUG #18514: Encountering an error invalid DSA memory alloc request size 1811939328 when executing script - Mailing list pgsql-bugs

From Thomas Munro
Subject Re: BUG #18514: Encountering an error invalid DSA memory alloc request size 1811939328 when executing script
Date
Msg-id CA+hUKGKXL5t-8KKQsOyAz7+eMRRAMkfbkFXwp4GLx0=nkF38dA@mail.gmail.com
Whole thread Raw
In response to Re: BUG #18514: Encountering an error invalid DSA memory alloc request size 1811939328 when executing script  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-bugs
On Tue, Jun 18, 2024 at 2:20 PM Thomas Munro <thomas.munro@gmail.com> wrote:
> Or enable_parallel_hash=off.

And if that allows the query to run, and it still uses the same basic
query plan with a Hash Right Join there, I wonder if it also uses a
huge number of batches, and if it does but manages to succeed, I
wonder if that could be just due to a difference in size of the
per-batch objects?  I vaguely recall that there was a proposal to cap
nbatch appropriately for that allocation, but the cap would be
different for serial and parallel cases due to the element sizes.



pgsql-bugs by date:

Previous
From: Thomas Munro
Date:
Subject: Re: BUG #18514: Encountering an error invalid DSA memory alloc request size 1811939328 when executing script
Next
From: Amit Langote
Date:
Subject: Re: JIT crash introduced by 6185c9737c with LLVM 14