Re: pgsql: Use bump memory context for tuplesorts

Поиск
Список
Период
Сортировка
От Melanie Plageman
Тема Re: pgsql: Use bump memory context for tuplesorts
Дата
Msg-id CAAKRu_Y6dZjiJEZghgNZp0Gjar1JVq-CH7XGDqExDVHnPgDjuw@mail.gmail.com
обсуждение исходный текст
Ответ на pgsql: Use bump memory context for tuplesorts  (David Rowley <drowley@postgresql.org>)
Ответы Re: pgsql: Use bump memory context for tuplesorts  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
On Sun, Apr 7, 2024 at 8:32 AM David Rowley <drowley@postgresql.org> 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 tuples due to bump.c
> not having chunk headers.  This means we can fit more tuples in work_mem
> before spilling to disk, or perform an in-memory sort touching fewer
> cacheline.

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

[1] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=grison&dt=2024-04-07%2014%3A10%3A09



В списке pgsql-committers по дате отправления:

Предыдущее
От: Thomas Munro
Дата:
Сообщение: pgsql: Use streaming I/O in sequential scans.
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: Reduce branches in heapgetpage()'s per-tuple loop