From owner-freebsd-ports Fri Jan 12 05:15:03 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA09739 for ports-outgoing; Fri, 12 Jan 1996 05:15:03 -0800 (PST) Received: from gaudi.diatel.upm.es (gaudi.diatel.upm.es [138.100.49.10]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id FAA09710 for ; Fri, 12 Jan 1996 05:12:55 -0800 (PST) Received: by gaudi.diatel.upm.es (4.1/SMI-4.1) Fri, 12 Jan 96 14:07:50 +0100 X400-Received: by mta diatel.upm in /PRMD=/ADMD=/C=/; Relayed; Fri, 12 Jan 1996 14:07:46 UTC+0100 X400-Received: by /PRMD=iris/ADMD=mensatex/C=es/; Relayed; Fri, 12 Jan 1996 14:07:46 UTC+0100 Date: Fri, 12 Jan 1996 14:07:46 UTC+0100 X400-Originator: jmrueda@diatel.upm.es X400-Recipients: non-disclosure:; X400-Content-Type: P2-1984 (2) X400-Mts-Identifier: [/PRMD=iris/ADMD=mensatex/C=es/;960112140746] Content-Identifier: 884 From: Javier Martin Rueda To: freebsd-ports@FreeBSD.org Message-Id: <884*/S=jmrueda/OU=diatel/O=upm/PRMD=iris/ADMD=mensatex/C=es/@MHS> Subject: Re: Postgres95 and FBSD 2.1R Mime-Version: 1.0 (Generated by Ean X.400 to MIME gateway) Sender: owner-ports@FreeBSD.org Precedence: bulk > Yes, me, for example, late in October, I beleive. > It worked and even passed all tests; for a pity, the guy from > our site who was going to use it, found other way to do the job, > so I relaxed and Postgres was left alone without an appropriate > heavy testing and use. Just now I don't have it installed. > > Yesterday I downloaded all the patches for Postgres95 > from s2k-ftp.cs.berkeley.edu > (somewhere in postgres95/bugs subdir, I beleive, p*.html) > and am planning to return to it few days later. > Please remind me next week -- I'll make a diff of how I made > it working and either send it to you or post it. I compiled and installed Postgres95 2 or 3 months ago, and found one apparent bug (though it seemed to "big" to have been unnoticed by other people). Again, I left Postgres aside, as I had to turn to other things, and I have done no more work on it. Out of curiosity, can you test the following and tell me if you have the bug too, or it's just that I did something wrong (or it has been fixed later)? By the way, I installed it under FreeBSD 2.0-RELEASE. Execute the following SQL script and look at the results: create table prueba ( r real, n integer); insert into prueba(r) values(15.0); update prueba set n=r; select * from prueba; -- The above commands should give me one row whose two fields are both -- '15' (or a complaint saying that they are different types). Instead, -- Postgres95 seems to just copy the binary representation from the real -- number into the integer number, resulting in an odd integer value -- (1097859072). update prueba set r=0.0; select * from prueba; update prueba set r=n; select * from prueba; -- A quick verification to demonstrate that Postgres95 just copies the -- binary representation, instead of converting the actual value (or -- complaining about different types). delete from prueba; insert into prueba(n) values(15); update prueba set r=n; select * from prueba; -- Another demonstration of the same bug, this time starting with a -- "good" integer value, and getting an odd real number (2.10195e-44).