From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 4391 invoked from network); 3 Jun 1998 05:12:15 -0000 Received: from ip2.net20483142.cr.sk.ca (HELO cabler.cableregina.com) (204.83.142.2) by mail2.redhat.com with SMTP; 3 Jun 1998 05:12:15 -0000 Received: from [24.72.3.110] by cabler.cableregina.com (SMTPD32-4.0) id A93A36C40108; Tue, 02 Jun 1998 23:12:10 -0700 Received: (from laz@localhost) by walleye.gonefishing.sk.ca (8.8.5/8.8.5) id XAA06799 for axp-list@redhat.com; Tue, 2 Jun 1998 23:13:08 -0600 Date: Tue, 2 Jun 1998 23:13:08 -0600 From: Larry Zimmerman Message-Id: <199806030513.XAA06799@walleye.gonefishing.sk.ca> To: axp-list@redhat.com Subject: Re: Postgres for Alpha - it Works! In-Reply-To: Mail from 'Ryan Kirkpatrick ' dated: Tue, 2 Jun 1998 09:17:39 -0600 (MDT) From: Ryan Kirkpatrick Tue, 2 Jun 1998 > Have you done any testing with the datetime datatype yet? On my > system (UDB RH4.0, 2.0.30, gcc 2.7.2, libc 1.93), out of the box, postgres > would throw a floating point exception whenever I tried to select a > datetime field from a table. Insertation of dates went just fine. I > tracked it to down to the decoding of a datetime from postgres's internal > format to a more human readable format. Adding '-mieee' to the compile > options and recompiling solved the problem. But now dates are off by about > 13 hours, between the date I insert, and the date I get when I select it > back out. If you do have dates working, I would be very interested in what > version (snapshot date and everything) you are using of postgres. Thanks! I have postgresql-6.3.2. The Directory in the tarfile is dated April 17. I also have patches dated April 21, April 28, and April 30. I tried the date stuff and it seemed to work. I have a sample SQL input file, and output file at: http://walleye.gonefishing.sk.ca/laz/pgsql/pgsql.html Could the problem be related to the way you enter date or time? I only enter dates as YY/MM/DD or YYYY/MM/DD. I tried entering 2 different time formats - with AM/PM at end, and 24 hour time. Both seem to work. Maybe one of these patches fised the problem for me? I'm really not familiar with Postgres, so maybe I just lucked out! Larry Z.