Skip site navigation (1) Skip section navigation (2)

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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christof Petig <christof(at)petig-baender(dot)de>
Cc: PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: pg_dump and psql disagree on numerical precision (powerpc)
Date: 2003-11-14 16:25:07
Message-ID: 22424.1068827107@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
Christof Petig <christof(at)petig-baender(dot)de> writes:
> 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?

It seems to me that you should be using type NUMERIC if you think there
is a difference between 0.3 and 0.29999999999999999.

			regards, tom lane

In response to

Responses

pgsql-bugs by date

Next:From: Christof PetigDate: 2003-11-14 22:07:46
Subject: Re: pg_dump and psql disagree on numerical precision (powerpc)
Previous:From: Christof PetigDate: 2003-11-14 15:47:10
Subject: Re: pg_dump and psql disagree on numerical precision (powerpc)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group