pgsql: Always use the caller-provided context for radix tree leaves

2025-01-05 Thread John Naylor
Always use the caller-provided context for radix tree leaves Previously, it would not have worked for a caller to pass a slab context, since it would have been used for other things which likely had incompatible size. In an attempt to be helpful and avoid possible space wastage due to aset's power

pgsql: Get rid of radix tree's general purpose memory context

2025-01-05 Thread John Naylor
Get rid of radix tree's general purpose memory context Previously, this was notionally used only for the entry point of the tree and as a convenient parent for other contexts. For shared memory, the creator previously allocated the entry point in this context, but attaching backends didn't have a

pgsql: Use caller's memory context for radix tree iteration state

2025-01-05 Thread John Naylor
Use caller's memory context for radix tree iteration state Typically only one iterator is present at any time, so it's overkill to devote an entire context for this. Get rid of it and use the caller's context. This is tidy-up work, so no backpatch in this form. However, a hypothetical extension t

pgsql: meson: Fix missing name arguments of cc.compiles() calls

2025-01-05 Thread Peter Eisentraut
meson: Fix missing name arguments of cc.compiles() calls Without it, the check won't show up in the meson setup/configure output. Discussion: https://www.postgresql.org/message-id/flat/795b1c54-c64a-47f9-8fa3-880dcab59975%40eisentraut.org Branch -- master Details --- https://git.postgr

pgsql: Remove useless configure check

2025-01-05 Thread Peter Eisentraut
Remove useless configure check The test for "decltype" as a variant of "typeof" apparently never worked (see also commit 3582b223d49), so remove it. Discussion: https://www.postgresql.org/message-id/flat/795b1c54-c64a-47f9-8fa3-880dcab59975%40eisentraut.org Branch -- master Details ---