Re: floating point representation - Mailing list pgsql-hackers

From Hiroshi Inoue
Subject Re: floating point representation
Date
Msg-id 3A90B589.64E655D1@tpf.co.jp
Whole thread Raw
In response to RE: floating point representation  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
Responses Re: floating point representation  (Peter Eisentraut <peter_e@gmx.net>)
Re: floating point representation  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
I wrote:
> 
> > -----Original Message-----
> > From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
> >
> > Peter Eisentraut <peter_e@gmx.net> writes:

[snip]

> 
> > Peter's idea of a SET variable to control float display format might
> > not be a bad idea, but what if anything should pg_dump do with it?
> > Maybe just crank the precision up a couple digits from the current
> > defaults?
> >
> 
> Currently the precision of float display format is FLT_DIG(DBL_DIG).
> It's not sufficent to distinguish float values. As Peter already suggested,
> the quickest solution would be to change XXX_DIG constants to variables
> and provide a routine to SET the variables. Strictly speaking the precision
> needed to distigush float values seems OS-dependent. It seems preferable
> to have a symbol to specify the precision.
> 

The 7.1-release seems near.
May I provide the followings ?SET FLOAT4_PRECISION TO ..SET FLOAT8_PRECISION TO ..

Or must we postpone to fix it ?

Regards,
Hiroshi Inoue


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: floating point representation
Next
From: Tom Lane
Date:
Subject: Re: floating point representation