Skip site navigation (1) Skip section navigation (2)

Re: Rejection of the smallest int8

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgreSQL(dot)org
Cc: sugita(at)sra(dot)co(dot)jp, pgsql-patches(at)postgreSQL(dot)org
Subject: Re: Rejection of the smallest int8
Date: 2001-11-21 15:30:17
Message-ID: 13809.1006356617@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
I said:
>> Attached is a patch to accept the smallest value of int8.

> This has been proposed before.  The problem with it is that it's
> not portable: the C standard does not specify the direction of rounding
> of integer division when the dividend is negative.

BTW, does anyone have a copy of the ANSI C standard to check this?

I have a draft of C99, which says that truncation is towards 0
regardless of the sign, but I think that this is something that was
tightened up in C99; we can't rely on older compilers to follow it.

			regards, tom lane

In response to

pgsql-hackers by date

Next:From: Bruce MomjianDate: 2001-11-21 15:30:54
Subject: Re: beta3
Previous:From: Dave CramerDate: 2001-11-21 15:21:29
Subject: Benchmarks

pgsql-patches by date

Next:From: Bruce MomjianDate: 2001-11-21 15:32:06
Subject: Re: [PATCHES] Version checking when loading psql
Previous:From: Tom LaneDate: 2001-11-21 15:12:02
Subject: Re: [PATCHES] Version checking when loading psql

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group