Re: Rounding of floating point in text dumps?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Chris Browne <cbbrowne(at)acm(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Rounding of floating point in text dumps?
Date: 2008-09-26 22:55:46
Message-ID: 338.1222469746@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Chris Browne <cbbrowne(at)acm(dot)org> writes:
> In the interests of personal laziness ;-), I'll throw the question to
> this list: how may we expect the imprecisions of FP affect text-based
> database dumps, if at all?

If the platform's float I/O routines conform fully to spec, you can
expect FP values to reload exactly. We dump them with a couple of
"extra" digits of precision to make this possible.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chris Browne 2008-09-26 23:08:57 Re: PostgreSQL future ideas
Previous Message Chris Browne 2008-09-26 22:20:25 Rounding of floating point in text dumps?