From: Tom Lane <tgl@sss.pgh.pa.us>
To: Magnus Hagander <magnus@hagander.net>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Michael Meskes <meskes@postgresql.org>
Cc: Jim Gray <jim.gray@bull.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #6238: ECPG converts "long long" to long on Windows
Date: Sun, 16 Oct 2011 16:15:01 -0400
Message-ID: <1554.1318796101@sss.pgh.pa.us> (raw)
In-Reply-To: <CABUevEx91M_Cyfe6qFgM_owDzC3zdM4ic78h+SGGmzowpTy2fg@mail.gmail.com>
References: <1317739247-sup-2334@alvh.no-ip.org>
<201110052112.p95LCUk28021@momjian.us>
<CABUevEx91M_Cyfe6qFgM_owDzC3zdM4ic78h+SGGmzowpTy2fg@mail.gmail.com>
Magnus Hagander <magnus@hagander.net> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, magnus@hagander.net, bruce@momjian.us, alvherre@commandprompt.com, robertmhaas@gmail.com, meskes@postgresql.org, jim.gray@bull.com
Subject: Re: BUG #6238: ECPG converts "long long" to long on Windows
In-Reply-To: <1554.1318796101@sss.pgh.pa.us>
References: <1317739247-sup-2334@alvh.no-ip.org> <201110052112.p95LCUk28021@momjian.us> <CABUevEx91M_Cyfe6qFgM_owDzC3zdM4ic78h+SGGmzowpTy2fg@mail.gmail.com> <1554.1318796101@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox