Re: pgsql: Use bump memory context for tuplesorts

2024-04-07 Thread Andres Freund
Hi, On 2024-04-07 13:52:28 -0400, Tom Lane wrote: > Melanie Plageman writes: > > Looks like this assert is tripping on grison [1]. > > > running bootstrap script ... TRAP: failed Assert("total_allocated == > > context->mem_allocated"), File: "bump.c", Line: 808, PID: 30248 > > The same on mamba.

Re: pgsql: Use bump memory context for tuplesorts

2024-04-07 Thread Tom Lane
Melanie Plageman writes: > Looks like this assert is tripping on grison [1]. > running bootstrap script ... TRAP: failed Assert("total_allocated == > context->mem_allocated"), File: "bump.c", Line: 808, PID: 30248 The same on mamba. However, I failed to duplicate it in an x86 (32-bit) VM. I th

Re: pgsql: Use bump memory context for tuplesorts

2024-04-07 Thread Melanie Plageman
On Sun, Apr 7, 2024 at 8:32 AM David Rowley wrote: > > Use bump memory context for tuplesorts > > 29f6a959c added a bump allocator type for efficient compact allocations. > Here we make use of this for non-bounded tuplesorts to store tuples. > This is very space efficient when storing narrow tuple

pgsql: Use bump memory context for tuplesorts

2024-04-07 Thread David Rowley
Use bump memory context for tuplesorts 29f6a959c added a bump allocator type for efficient compact allocations. Here we make use of this for non-bounded tuplesorts to store tuples. This is very space efficient when storing narrow tuples due to bump.c not having chunk headers. This means we can fi