Re: pgsql: Introduce a bump memory allocator

2024-04-10 Thread Peter Eisentraut
On 10.04.24 01:11, David Rowley wrote: On Wed, 10 Apr 2024 at 00:05, Peter Eisentraut wrote: This patch introduces in bump.c the macro BumpBlockIsValid(), but it's not used anywhere. Can we remove it? I've just pushed a patch to remove it. Was that spotted by eagle eyes or tooling? I

Re: pgsql: Introduce a bump memory allocator

2024-04-09 Thread David Rowley
On Wed, 10 Apr 2024 at 00:05, Peter Eisentraut wrote: > This patch introduces in bump.c the macro BumpBlockIsValid(), but it's > not used anywhere. Can we remove it? I've just pushed a patch to remove it. Was that spotted by eagle eyes or tooling? David

Re: pgsql: Introduce a bump memory allocator

2024-04-09 Thread Peter Eisentraut
On 07.04.24 14:03, David Rowley wrote: Introduce a bump memory allocator This patch introduces in bump.c the macro BumpBlockIsValid(), but it's not used anywhere. Can we remove it? (If we don't remove it, I suggest to make it an inline function, so it's easier to tell what it's supposed

pgsql: Introduce a bump memory allocator

2024-04-07 Thread David Rowley
Introduce a bump memory allocator This introduces a bump MemoryContext type. The bump context is best suited for short-lived memory contexts which require only allocations of memory and never a pfree or repalloc, which are unsupported. Memory palloc'd into a bump context has no chunk header.