Re: [PATCHES] guc - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCHES] guc
Date
Msg-id 7768.1011374399@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCHES] guc  (Liam Stewart <liams@redhat.com>)
List pgsql-hackers
Liam Stewart <liams@redhat.com> writes:
>>> What I would like to get out of the configurability of floating-point
>>> numbers is:
>>> 1. The ability to dump them in binary or hex format for lossless
>>> dump/reload.  (printf("%a") does that.)
>> 
>> On some platforms... I'd be happier with this if it were more portable...

> Roll our own? %a and %A are C99 so are much less portable than most
> other printf conversion specifiers.

Hmm ... rolling our own might actually not be too unreasonable ...
and the lack of lossless dump/reload for floats has certainly been
a sore point for a long time, so expending some effort here is
justified.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Liam Stewart
Date:
Subject: Re: [PATCHES] guc
Next
From: Tom Lane
Date:
Subject: Re: Bug in pg_dump/restore -o