Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TicjK-0007LY-W6 for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Dec 2012 03:11:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TicjK-0005Qj-H0 for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Dec 2012 03:11:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TicjK-0005Qe-0A for pgsql-bugs@postgresql.org; Wed, 12 Dec 2012 03:11:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TicjI-00051c-8R for pgsql-bugs@postgresql.org; Wed, 12 Dec 2012 03:11:29 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id qBC3BQn9026334; Tue, 11 Dec 2012 22:11:26 -0500 (EST) From: Tom Lane To: Jeff Davis cc: pgsql-bugs@postgresql.org Subject: Re: init_htab causes SIGFPE (or worse) due to miscalculation for large nbuckets In-reply-to: <1355197546.15663.61.camel@sussancws0025> References: <1355079715.3896.14.camel@jdavis> <18018.1355093132@sss.pgh.pa.us> <1355185776.13316.4.camel@sussancws0025> <1036.1355189242@sss.pgh.pa.us> <1355191549.15663.10.camel@sussancws0025> <2050.1355192347@sss.pgh.pa.us> <1355197546.15663.61.camel@sussancws0025> Comments: In-reply-to Jeff Davis message dated "Mon, 10 Dec 2012 19:45:44 -0800" Date: Tue, 11 Dec 2012 22:11:26 -0500 Message-ID: <26333.1355281886@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Jeff Davis 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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs