Re: init_htab causes SIGFPE (or worse) due to miscalculation for large nbuckets

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: init_htab causes SIGFPE (or worse) due to miscalculation for large nbuckets
Date: 2012-12-12 03:11:26
Message-ID: 26333.1355281886@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Jeff Davis <pgsql(at)j-davis(dot)com> writes:
> On Mon, 2012-12-10 at 21:19 -0500, Tom Lane wrote:
>> 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.

> Attached. This fixes my test case[1] and uses the functions that you
> wrote. I made them static because I couldn't think of a reason for
> something outside to call them.

Applied with minor adjustments.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Sandeep Thakkar 2012-12-12 08:01:10 Re: BUG #7751: libintl.h missing in the include folder
Previous Message m.sakrejda 2012-12-12 01:55:13 BUG #7752: FATAL btree error on PITR