Re: Trigger Function and backup - Mailing list pgsql-general

From Vick Khera
Subject Re: Trigger Function and backup
Date
Msg-id 2968dfd60906150823u1057f5d6n7c61224eebce0c62@mail.gmail.com
Whole thread Raw
In response to Re: Trigger Function and backup  (Havasvölgyi Ottó <havasvolgyi.otto@gmail.com>)
List pgsql-general
On Mon, Jun 15, 2009 at 5:50 AM, Havasvölgyi
Ottó<havasvolgyi.otto@gmail.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.

pgsql-general by date:

Previous
From: David Fetter
Date:
Subject: Re: horizontal sharding
Next
From: David Goodenough
Date:
Subject: Re: Custom Fields Database Architecture