Re: Float output formatting options

From: "Pedro M(dot) Ferreira" <pfrazao(at)ualg(dot)pt>
To: "Pedro M(dot) Ferreira" <pfrazao(at)ualg(dot)pt>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Float output formatting options
Date: 2002-11-05 11:11:25
Message-ID: 3DC7A75D.1030505@ualg.pt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Pedro M. Ferreira wrote:
> Tom Lane wrote:
>> Perhaps P_MAXLEN now needs to be (2*(DBL_DIG+2+7)+1), considering
>> that we'll allow extra_float_digits to be up to 2. What's it used for?
>
> Yes. I guess so, because it is used in what I think is a memory
> allocation function. P_MAXLEN is only used twice:
<...>
>
> I will do the changes tomorrow and send in the appropriate diff's.

Ok. Its done now.
Only one file changed: src/backend/utils/adt/geo_ops.c

All the geometric types should now account for float_extra_digits on output.

A diff -u is attached.

Best reagards,
Pedro

> Regards,
> Pedro
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
>

--
----------------------------------------------------------------------
Pedro Miguel Frazao Fernandes Ferreira
Universidade do Algarve
Faculdade de Ciencias e Tecnologia
Campus de Gambelas
8000-117 Faro
Portugal
Tel./Fax: (+351) 289 800950 / 289 819403
http://w3.ualg.pt/~pfrazao

Attachment Content-Type Size
geo_ops.c.diff text/plain 2.7 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Satoshi Nagayasu 2002-11-05 11:54:46 Re: protocol change in 7.4
Previous Message Alessio Bragadini 2002-11-05 11:05:47 Re: Request for supported platforms