Re: [GENERAL] round behavior differs between 8.1.5 and 8.3.7

2009-04-21 Thread Robert Morton
Thanks for the explanation, that's exactly the level of detail I need. -Robert On Tue, Apr 21, 2009 at 12:00 PM, Tom Lane wrote: > Robert Morton writes: > > Perhaps there are platform differences, since the version I am using was > > built with Microsoft Visual Studio: > > Ah, now you tell us.

Re: [GENERAL] round behavior differs between 8.1.5 and 8.3.7

2009-04-21 Thread Tom Lane
Robert Morton writes: > Perhaps there are platform differences, since the version I am using was > built with Microsoft Visual Studio: Ah, now you tell us. round(float8) just calls the platform's rint() function. At least on platforms that have rint(), which maybe Windows doesn't. In that case

Re: [GENERAL] round behavior differs between 8.1.5 and 8.3.7

2009-04-21 Thread Robert Morton
Perhaps there are platform differences, since the version I am using was built with Microsoft Visual Studio: SELECT version() PostgreSQL 8.3.7, compiled by Visual C++ build 1400 The v8.1.5 server I'm using was compiled with GCC: PostgreSQL 8.1.5 on i686-pc-mingw32, compiled by GCC gcc.exe (GCC) 3.

Re: [GENERAL] round behavior differs between 8.1.5 and 8.3.7

2009-04-20 Thread Adrian Klaver
On Monday 20 April 2009 5:20:47 pm Adrian Klaver wrote: > On Monday 20 April 2009 2:21:31 pm Robert Morton wrote: > > Howdy, > > None of the discussions about rounding so far have addressed what appears > > to be a significant change that occurred at some point between PostgreSQL > > v8.1.5 and v8.

Re: [GENERAL] round behavior differs between 8.1.5 and 8.3.7

2009-04-20 Thread Adrian Klaver
On Monday 20 April 2009 2:21:31 pm Robert Morton wrote: > Howdy, > None of the discussions about rounding so far have addressed what appears > to be a significant change that occurred at some point between PostgreSQL > v8.1.5 and v8.3.7. Can someone explain to me the difference between the > two r

[GENERAL] round behavior differs between 8.1.5 and 8.3.7

2009-04-20 Thread Robert Morton
Howdy, None of the discussions about rounding so far have addressed what appears to be a significant change that occurred at some point between PostgreSQL v8.1.5 and v8.3.7. Can someone explain to me the difference between the two resultsets below? Additionally I would like to understand what opt