Re: init_htab causes SIGFPE (or worse) due to miscalculation for large nbuckets
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: init_htab causes SIGFPE (or worse) due to miscalculation for large nbuckets |
| Дата | |
| Msg-id | 2050.1355192347@sss.pgh.pa.us обсуждение |
| Ответ на | Re: init_htab causes SIGFPE (or worse) due to miscalculation for large nbuckets (Jeff Davis <pgsql@j-davis.com>) |
| Ответы |
Re: init_htab causes SIGFPE (or worse) due to
miscalculation for large nbuckets
|
| Список | pgsql-bugs |
Jeff Davis <pgsql@j-davis.com> writes:
> On Mon, 2012-12-10 at 20:27 -0500, Tom Lane wrote:
>> That does seem like a good idea. We need one for an int-sized result
>> too, to fix the original problem in init_htab. So I propose these
>> functions:
> Looks good to me. One other corner case in the version of the patch I
> was working on was that nbuckets is compared to num_partitions, which is
> a long. We can assert that it is less than or equal to INT_MAX in
> hash_create.
> Aside from that, I'll drop my version of the patch, which doesn't have
> any useful differences from yours.
I hadn't gone any further than to code and test the functions I listed.
If you are working on a complete patch, please press on.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера