pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Avoid using platform-dependent floats in test case.
3+ messages / 3 participants
[nested] [flat]
* pgsql: Avoid using platform-dependent floats in test case.
@ 2016-10-26 11:17 Heikki Linnakangas <heikki.linnakangas@iki.fi>
2016-10-26 13:42 ` Re: pgsql: Avoid using platform-dependent floats in test case. Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 3+ messages in thread
From: Heikki Linnakangas @ 2016-10-26 11:17 UTC (permalink / raw)
To: pgsql-committers
Avoid using platform-dependent floats in test case.
The number of decimals printed for floats varied in this test case, as
noted by several buildfarm members. There's nothing special about floats
and arrays in the code being tested, so replace the floats with numerics to
make the output platform-independent.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/73c8e8506cd1933ccf5c5d61088ca171a5f414c0
Modified Files
--------------
src/pl/plpython/expected/plpython_types.out | 19 ++++---------------
src/pl/plpython/expected/plpython_types_3.out | 19 ++++---------------
src/pl/plpython/sql/plpython_types.sql | 11 ++---------
3 files changed, 10 insertions(+), 39 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: Avoid using platform-dependent floats in test case.
2016-10-26 11:17 pgsql: Avoid using platform-dependent floats in test case. Heikki Linnakangas <heikki.linnakangas@iki.fi>
@ 2016-10-26 13:42 ` Tom Lane <tgl@sss.pgh.pa.us>
2016-10-26 14:02 ` Re: pgsql: Avoid using platform-dependent floats in test case. Heikki Linnakangas <hlinnaka@iki.fi>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2016-10-26 13:42 UTC (permalink / raw)
To: Heikki Linnakangas <heikki.linnakangas@iki.fi>; +Cc: pgsql-committers
Heikki Linnakangas <heikki.linnakangas@iki.fi> writes:
> Avoid using platform-dependent floats in test case.
> The number of decimals printed for floats varied in this test case, as
> noted by several buildfarm members. There's nothing special about floats
> and arrays in the code being tested, so replace the floats with numerics to
> make the output platform-independent.
Numerics aren't entirely platform-independent in Python, either,
cf prairiedog. Is it okay to use text?
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: Avoid using platform-dependent floats in test case.
2016-10-26 11:17 pgsql: Avoid using platform-dependent floats in test case. Heikki Linnakangas <heikki.linnakangas@iki.fi>
2016-10-26 13:42 ` Re: pgsql: Avoid using platform-dependent floats in test case. Tom Lane <tgl@sss.pgh.pa.us>
@ 2016-10-26 14:02 ` Heikki Linnakangas <hlinnaka@iki.fi>
0 siblings, 0 replies; 3+ messages in thread
From: Heikki Linnakangas @ 2016-10-26 14:02 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers
On 10/26/2016 04:42 PM, Tom Lane wrote:
> Heikki Linnakangas <heikki.linnakangas@iki.fi> writes:
>> Avoid using platform-dependent floats in test case.
>> The number of decimals printed for floats varied in this test case, as
>> noted by several buildfarm members. There's nothing special about floats
>> and arrays in the code being tested, so replace the floats with numerics to
>> make the output platform-independent.
>
> Numerics aren't entirely platform-independent in Python, either,
> cf prairiedog. Is it okay to use text?
Oh, thanks for prodding, I didn't notice it was still failing, I thought
it just hadn't run since that fix.
There is actually a similar test for text already. I don't really have
any reason to believe that this would work differently with different
datatypes, adding tests with different datatypes was perhaps overkill in
the first place. I'm going to just remove the offending case.
- Heikki
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2016-10-26 14:02 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-10-26 11:17 pgsql: Avoid using platform-dependent floats in test case. Heikki Linnakangas <heikki.linnakangas@iki.fi>
2016-10-26 13:42 ` Tom Lane <tgl@sss.pgh.pa.us>
2016-10-26 14:02 ` Heikki Linnakangas <hlinnaka@iki.fi>
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