From: Tom Lane <tgl@sss.pgh.pa.us>
To: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Subject: Re: pgsql: Fix unportable code in pgbench.
Date: Wed, 17 Apr 2019 17:57:14 -0400
Message-ID: <30311.1555538234@sss.pgh.pa.us> (raw)
In-Reply-To: <alpine.DEB.2.21.1904172339370.26370@lancre>
References: <E1hGs8a-0000DY-Ff@gemulon.postgresql.org>
<alpine.DEB.2.21.1904172339370.26370@lancre>
Fabien COELHO <coelho@cri.ensmp.fr> writes:
>> Fix unportable code in pgbench.
> Sorry for this unforseen issue... portability is a pain:-(
I think it's my fault, actually --- I don't remember how much of
that patch was yours.
> Yep, but ISTM that it is down to 32 bits,
Only on 32-bit-long machines, which are a dwindling minority (except
for Windows, which I don't really care about).
> So the third short is now always 0. Hmmm. I'll propose another option over
> the week-end.
I suppose we could put pg_strtouint64 somewhere where pgbench can use it,
but TBH I don't think it's worth the trouble. The set of people using
the --random-seed=int option at all is darn near empty, I suspect,
and the documentation only says you can write an int there.
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, coelho@cri.ensmp.fr, pgsql-hackers@lists.postgresql.org
Subject: Re: pgsql: Fix unportable code in pgbench.
In-Reply-To: <30311.1555538234@sss.pgh.pa.us>
References: <E1hGs8a-0000DY-Ff@gemulon.postgresql.org> <alpine.DEB.2.21.1904172339370.26370@lancre> <30311.1555538234@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