Re: Trigger Function and backup

From: Vick Khera <vivek(at)khera(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Trigger Function and backup
Date: 2009-06-15 15:23:07
Message-ID: 2968dfd60906150823u1057f5d6n7c61224eebce0c62@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jun 15, 2009 at 5:50 AM, Havasvölgyi
Ottó<havasvolgyi(dot)otto(at)gmail(dot)com> wrote:
> 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);

Firstly, I'm not sure what this message has to do with the thread
"Trigger Function and backup".

Secondly, please show your table definition.

And Finally, the round() mathematical function is ill-defined. People
have been arguing over this for decades. Choose either ceil() or
floor() to get a more precise result with appropriate addition or
subtraction of 0.5 to get the "rounding" effect you seem to desire.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Christine Penner 2009-06-15 15:44:25 Re: String Manipulation
Previous Message David Goodenough 2009-06-15 15:14:07 Re: Custom Fields Database Architecture