Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUCxP-0007Fg-EC for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Aug 2016 13:08:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bUCxP-0002Qh-1B for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Aug 2016 13:08:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bUCwl-0001e4-GY for pgsql-bugs@postgresql.org; Mon, 01 Aug 2016 13:07:55 +0000 Received: from gauss.credativ.com ([93.94.130.89]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bUCwf-0001dU-QU for pgsql-bugs@postgresql.org; Mon, 01 Aug 2016 13:07:54 +0000 Received: from gauss.credativ.com (localhost [127.0.0.1]) by gauss.credativ.com (Postfix) with ESMTP id 28F2D1B60CD; Mon, 1 Aug 2016 15:07:48 +0200 (CEST) Received: from feivel.credativ.lan (tmo-111-42.customers.d1-online.com [80.187.111.42]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mme@gauss.credativ.com) by gauss.credativ.com (Postfix) with ESMTPSA id F13211B60C9; Mon, 1 Aug 2016 15:07:47 +0200 (CEST) Received: by feivel.credativ.lan (Postfix, from userid 1000) id 1B2C832F; Mon, 1 Aug 2016 07:15:51 +0200 (CEST) Date: Mon, 1 Aug 2016 07:15:51 +0200 From: Michael Meskes To: nilesoien@gmail.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14267: ecpg bug causes hanging for certain data types Message-ID: <20160801051551.GA4672@feivel> References: <20160727193042.7445.75871@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160727193042.7445.75871@wrigleys.postgresql.org> User-Agent: Mutt/1.6.0 (2016-04-01) X-Pg-Spam-Score: -1.6 (-) 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 On Wed, Jul 27, 2016 at 07:30:42PM +0000, nilesoien@gmail.com wrote: > The following bug has been logged on the website: > ... > We have a program that compiles with ecpg that seemed to hang until we > changed the type of a variable from "unsigned long long" to be simply "long > long int". Thanks for finding this. > We think we've tracked this down somewhat. > > It appears that there might be a defect in the guard statement that appears > on lines 377 and 378 of data.c (in the ECPG C preprocessor in PG version > ... And more thanks for tracking it down. I have no idea why this ages old code is still in there. Apparently not many people use unsigned long long. Anyway, a fix will be pushed as soon as I'm online again. Michael -- Michael Meskes Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) Meskes at (Debian|Postgresql) dot Org Jabber: michael at xmpp dot meskes dot org VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs