Re: BUG #16104: Invalid DSA Memory Alloc Request in Parallel Hash
От | James Coleman |
---|---|
Тема | Re: BUG #16104: Invalid DSA Memory Alloc Request in Parallel Hash |
Дата | |
Msg-id | CAAaqYe809Qjf8tRyyrnNtGLH1M-F+97bR0xM09Sed+UGhYG3uw@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: BUG #16104: Invalid DSA Memory Alloc Request in Parallel Hash (Thomas Munro <thomas.munro@gmail.com>) |
Ответы |
Re: BUG #16104: Invalid DSA Memory Alloc Request in Parallel Hash
|
Список | pgsql-bugs |
On Sun, Nov 10, 2019 at 4:09 PM Thomas Munro <thomas.munro@gmail.com> wrote: > > I think I see what's happening: we're running out of hash bits. > > > Buckets: 4194304 (originally 4194304) Batches: 32768 (originally 4096) Memory Usage: 344448kB > > Here it's using the lower 22 bits for the bucket number, and started > out using 12 bits for the batch (!), and increased that until it got > to 15 (!!). After using 22 bits for the bucket, there are only 10 > bits left, so all the tuples go into the lower 1024 batches. Do we have this kind of problem with hash aggregates also? I've noticed the temp disk usage pattern applies to both, and the buffers stats shows that being the case, but unfortunately the hash aggregate node doesn't report memory usage for its hash or buckets info. Given it's not a join, maybe we only need buckets and not batches, but I don't know this part of the code at all, so I'm just guessing to assume either way. James
В списке pgsql-bugs по дате отправления: