Re: WIP: to_char, support for EEEE format - Mailing list pgsql-hackers

From Brendan Jurd
Subject Re: WIP: to_char, support for EEEE format
Date
Msg-id 37ed240d0908021910t597c3f3bpbf69c0b244275ef8@mail.gmail.com
Whole thread Raw
In response to Re: WIP: to_char, support for EEEE format  (Euler Taveira de Oliveira <euler@timbira.com>)
Responses Re: WIP: to_char, support for EEEE format  (Brendan Jurd <direvus@gmail.com>)
List pgsql-hackers
2009/8/3 Euler Taveira de Oliveira <euler@timbira.com>:
> Brendan Jurd escreveu:
>> Euler, could you post results for a number which fits within Oracle's
>> data type but has three exponent digits (like 1E+100)?
>>
> I don't access to an Oracle Server now but it works fine up to the 127 limit.
> And differently to what Pavel proposed, the number of E's is not related to
> the number of characters (at least not anymore). So I would like to see the
> EEEE being used if we have 2 or 3 exponent digits (that is the same behavior
> Oracle has).
>

Okay, so Oracle just forces the output wider to accomodate the
exponent (i.e., you can't rely on it being fixed-width).

I can adjust the patch to imitate this behaviour; should be able to
post a new revision within 24 hours.

Cheers,
BJ


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: WIP: to_char, support for EEEE format
Next
From: Robert Haas
Date:
Subject: Re: CommitFest Status Summary - 2009-08-03