Received: from xxx-bfhxx-ms001.mowlem.com (mail2.mowlem.com [212.137.27.84]) by mail.postgresql.org (8.11.3/8.11.1) with ESMTP id f2SCs9U10023 for ; Wed, 28 Mar 2001 07:54:09 -0500 (EST) (envelope-from Ben.Trewern@mowlem.com) Received: from xxx-bfhxx-ex002.mowlem.com (unverified) by xxx-bfhxx-ms001.mowlem.com (Content Technologies SMTPRS 4.1.2) with ESMTP id ; Wed, 28 Mar 2001 13:56:13 +0100 Received: by XXX_BFHXX_EX002 with Internet Mail Service (5.5.2650.21) id ; Wed, 28 Mar 2001 13:51:04 +0100 Message-ID: <996802F75C3CD411B424001083FA445B05955C@CET_PONXX_FP001> From: "Trewern, Ben" To: "'salva@ronincoders.com'" , pgsql-admin@postgresql.org Subject: RE: date_part bug? Date: Wed, 28 Mar 2001 13:50:54 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0B785.BF8CF6D6" X-Archive-Number: 200103/206 X-Sequence-Number: 1053 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0B785.BF8CF6D6 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Are you using Mandrake 7.x. It seems to have some problems with rounding and dates because of its use of certain compiler settings. If you are, try using the Postgres 7.0.3 RPMs from one of the ftp mirrors. They seem to work correctly. Regards Ben > -----Original Message----- > From: Salvador Main=E9 [mailto:salvamaine@yahoo.com] > Sent: 28 March 2001 11:51 > To: pgsql-admin@postgresql.org > Subject: [ADMIN] date_part bug? >=20 >=20 > Hello: >=20 > I'm using postgres 7.0.2. When I use date_part('day', date)=20 > sometimes I > get wrong values. Ie:=20 > and date_part('day', '1999-3-28')=3D27 >=20 > and date_part('day', '2000-3-26')=3D25 >=20 > Is it a bug? >=20 > --=20 > Salvador Main=E9 >=20 > ---------------------------(end of=20 > broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to=20 > majordomo@postgresql.org) >=20 ------_=_NextPart_001_01C0B785.BF8CF6D6 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [ADMIN] date_part bug?

Are you using Mandrake 7.x.  It seems to have some p= roblems with rounding and dates because of its use of certain compiler sett= ings.  If you are, try using the Postgres 7.0.3 RPMs from one of the f= tp mirrors.  They seem to work correctly.

Regards

Ben

> -----Original Message-----
> From: Salvador Main=E9 [mailto:salvamaine@yahoo.com]
> Sent: 28 March 2001 11:51
> To: pgsql-admin@postgresql.org
> Subject: [ADMIN] date_part bug?
>
>
> Hello:
>
> I'm using postgres 7.0.2. When I use date_part('day= ', date)
> sometimes I
> get wrong values. Ie:
> and date_part('day', '1999-3-28')=3D27
>
> and date_part('day', '2000-3-26')=3D25
>
> Is it a bug?
>
> --
> Salvador Main=E9
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 2: you can get off all lists at once with the u= nregister command
>     (send "unregister Your= EmailAddressHere" to
> majordomo@postgresql.org)
>

------_=_NextPart_001_01C0B785.BF8CF6D6--