Re: pg_dump and psql disagree on numerical precision (powerpc)

From: Christof Petig <christof(at)petig-baender(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: pg_dump and psql disagree on numerical precision (powerpc)
Date: 2003-11-14 15:47:10
Message-ID: 3FB4F8FE.6020209@petig-baender.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Tom Lane schrieb:
> Christof Petig <christof(at)petig-baender(dot)de> writes:
>
>>COPY test (x) FROM stdin;
>>0.29999999999999999
>>\.
>
>
> This is not a bug; it's pg_dump trying to recreate the actual floating
> point value as accurately as it can. See the discussion of
> extra_float_digits from six months or a year back.

Oh, I see (and generally appreciate). Thank you for reminding me.

Commenting out "set extra_float_digits=2" in pg_dump.c gives me the old
behaviour. Is it only me wishing for a command line parameter for
pg_dump to set desired precision?

Christof

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2003-11-14 16:25:07 Re: pg_dump and psql disagree on numerical precision (powerpc)
Previous Message Tom Lane 2003-11-14 14:50:32 Re: pg_dump and psql disagree on numerical precision (powerpc)