Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 1420CB5DBE0 for ; Sun, 16 Oct 2011 17:15:13 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 88843-06 for ; Sun, 16 Oct 2011 20:15:07 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id C3B72B5DBC4 for ; Sun, 16 Oct 2011 17:15:06 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p9GKF1oZ001555; Sun, 16 Oct 2011 16:15:01 -0400 (EDT) To: Magnus Hagander cc: Bruce Momjian , Alvaro Herrera , Robert Haas , Michael Meskes , Jim Gray , Pg Bugs Subject: Re: BUG #6238: ECPG converts "long long" to long on Windows In-reply-to: References: <1317739247-sup-2334@alvh.no-ip.org> <201110052112.p95LCUk28021@momjian.us> Comments: In-reply-to Magnus Hagander message dated "Sun, 16 Oct 2011 20:37:16 +0200" Date: Sun, 16 Oct 2011 16:15:01 -0400 Message-ID: <1554.1318796101@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201110/130 X-Sequence-Number: 31400 Magnus Hagander writes: > Does ecpg have a different requirement from everything else, or are we just > doing it differently in different places for no special reason? I believe that in ecpg, the requirement is "support the data types defined by the C compiler", that is we should support long long with whatever width it actually has on the platform. Just about everyplace else in PG, we want an integer of a known number of bits, and whether that's long or long long is incidental. So it's not surprising to me that this case got overlooked in the win64 patches. regards, tom lane