From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dean Rasheed <dean.a.rasheed@gmail.com>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Fix pg_size_bytes() to be more portable.
Date: Sat, 20 Feb 2016 09:54:07 -0500
Message-ID: <5432.1455980047@sss.pgh.pa.us> (raw)
In-Reply-To: <E1aX5Rv-00022d-Gr@gemulon.postgresql.org>
References: <E1aX5Rv-00022d-Gr@gemulon.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Dean Rasheed <dean.a.rasheed@gmail.com> writes:
> Fix pg_size_bytes() to be more portable.
> Commit 53874c5228fe16589a4d01b3e1fab3678e0fd8e3 broke various 32-bit
> buildfarm machines because it incorrectly used an 'L' suffix for what
> needed to be a 64-bit literal. Thanks to Michael Paquier for helping
> to diagnose this.
That's still not right: not all compilers support "long long", and the
ones that don't won't have "LL" notation either.
Project style is to use something like "(uint64) 1024" instead.
regards, tom lane
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, dean.a.rasheed@gmail.com
Subject: Re: pgsql: Fix pg_size_bytes() to be more portable.
In-Reply-To: <5432.1455980047@sss.pgh.pa.us>
References: <E1aX5Rv-00022d-Gr@gemulon.postgresql.org> <5432.1455980047@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