| От | Tom Lane |
|---|---|
| Тема | Re: [HACKERS] execGrouping.c limit on work_mem |
| Дата | |
| Msg-id | 21217.1495993748@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | [HACKERS] execGrouping.c limit on work_mem (Jeff Janes <jeff.janes@gmail.com>) |
| Список | pgsql-hackers |
Jeff Janes <jeff.janes@gmail.com> writes:
> In BuildTupleHashTable
> /* Limit initial table size request to not more than work_mem */
> nbuckets = Min(nbuckets, (long) ((work_mem * 1024L) / entrysize));
> Is this a good idea? If the caller of this code has no respect for
> work_mem, they are still going to blow it out of the water. Now we will
> just do a bunch of hash-table splitting in the process. That is only going
> to add to the pain.
It looks perfectly reasonable to me. The point I think is that the caller
doesn't have to be very careful about calculating its initial request
size.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера