"Kevin Grittner" <kevin.gritt...@wicourts.gov> writes: > Tom Lane <t...@sss.pgh.pa.us> wrote: >> If we're gonna fix it, we should just fix it, I think. I was >> considering taking a stab at it, but if someone else would like >> to, that's fine too. > I wouldn't mind doing it, but not until after the CF wraps. On the > other hand, isn't this is one of those compatibility functions? > Perhaps it would best be done by someone who has familiarity with, > and access to, a database with which we're trying to be compatible.
Chris already stated that the case gives the answer he expects in several other DBs, so I don't seem much need for further compatibility checking on the "don't round off prematurely" angle. However, it would be interesting to know what Oracle etc do with NaN and Infinity, assuming they even support such numbers. Currently what our code does for the format-with-EEEE case is to output "#" in all digit positions. It would be plausible for that to happen in the non-EEEE cases too, but whether that's actually what happens in other systems is something I don't know. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs