Re: float8 transmitted in ascii

From: Steven Schlansker <stevenschlansker(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Dave Cramer <pg(at)fastcrypt(dot)com>, Timo Nentwig <postgres(at)nentwig(dot)biz>, List <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: float8 transmitted in ascii
Date: 2015-04-30 17:05:25
Message-ID: 0A1C3AE4-C08B-4EC7-AF92-0AC2799F24BB@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc


On Apr 30, 2015, at 9:36 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Dave Cramer <pg(at)fastcrypt(dot)com> writes:
>> I'm not convinced it is being transmitted in ASCII. It should not be
>
> Transmission in binary would require an assumption that the server and
> client share identical floating-point representations, which sure sounds
> like a leap of faith from here (or at least blind Intel-centricism).

Why not just specify the binary format as IEEE 754? Native to many machines,
and probably cheaper to convert than ASCII anyway if it's not native.

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Jeremy Whiting 2015-05-01 13:38:46 Resource lookup timeout causes Travis IC to fail test.
Previous Message Tom Lane 2015-04-30 16:36:42 Re: float8 transmitted in ascii