Re: Trigger Function and backup

From: Havasvölgyi Ottó <havasvolgyi(dot)otto(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Trigger Function and backup
Date: 2009-06-15 09:50:21
Message-ID: 34608c0c0906150250g31ab5fbas659c8f5f45091d2c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I have found the following strangeness on Windows:

create table round_test (id int primary key, value double precision);
insert into round_test(id, value) values(1, 1.5);
insert into round_test(id, value) values(2, -1.5);
insert into round_test(id, value) values(3, 3.5);
select round(value) from round_test;

psql 8.2.13 returns

2
-2
4

But psql 8.3.3 returns

1
-1
3

What does cause this?
How can I avoid this incompatibility or perhaps bug?

Thanks,
Otto

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Havasvölgyi Ottó 2009-06-15 10:58:59 Rounding incompatibility
Previous Message Nishkarsh 2009-06-15 08:29:36 Trigger Function and backup