[HACKERS] Interval output bug in HAVE_INT64_TIMESTAMP

2008-10-02 Thread Ron Mayer
Seems to me there's a bug in HEAD (and probably old branches as well) when compiled with HAVE_INT64_TIMESTAMP. As shown below It sometimes shows things like -6.-70 secs where 8.3 showed -6.70 secs. I think the attached one-liner patch fixes this, as well as another roundoff regression between

Re: [HACKERS] Interval output bug in HAVE_INT64_TIMESTAMP

2008-10-02 Thread Tom Lane
Ron Mayer [EMAIL PROTECTED] writes: Seems to me there's a bug in HEAD (and probably old branches as well) when compiled with HAVE_INT64_TIMESTAMP. As shown below It sometimes shows things like -6.-70 secs where 8.3 showed -6.70 secs. I think the attached one-liner patch fixes this, as well

Re: [HACKERS] Interval output bug in HAVE_INT64_TIMESTAMP

2008-10-02 Thread Ron Mayer
Tom Lane wrote: Yeah, bug all the way back --- applied. I don't much like the forced rounding to two digits here, but changing that doesn't seem like material for back-patching. Are you going to fix that up while working on your other patches? Gladly. I hate that too. I think I can also

Re: [HACKERS] Interval output bug in HAVE_INT64_TIMESTAMP

2008-10-02 Thread Ron Mayer
Ron Mayer wrote: Tom Lane wrote: Yeah, bug all the way back --- applied. I don't much like the forced rounding to two digits here, but changing that doesn't seem like material for back-patching. Are you going to fix that up while working on your other patches? Gladly. I hate that too.