pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Trewern, Ben <Ben.Trewern@mowlem.com>
To: 'salva@ronincoders.com' <salva@ronincoders.com>
To: pgsql-admin@postgresql.org
Subject: RE: date_part bug?
Date: Wed, 28 Mar 2001 13:50:54 +0100
Message-ID: <996802F75C3CD411B424001083FA445B05955C@CET_PONXX_FP001> (raw)

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é [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')=27
> 
> and date_part('day', '2000-3-26')=25
> 
> Is it a bug?
> 
> -- 
> Salvador Mainé
> 
> ---------------------------(end of 
> broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to 
> majordomo@postgresql.org)
> 

view thread (3+ messages)  latest in thread

Message-ID: <996802F75C3CD411B424001083FA445B05955C@CET_PONXX_FP001>
Permalink:  ../996802F75C3CD411B424001083FA445B05955C@CET_PONXX_FP001/
Also on:    postgresql.org/message-id/996802F75C3CD411B424001083FA445B05955C@CET_PONXX_FP001

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Ben.Trewern@mowlem.com, salva@ronincoders.com
  Subject: Re: date_part bug?
  In-Reply-To: <996802F75C3CD411B424001083FA445B05955C@CET_PONXX_FP001>
  References: <996802F75C3CD411B424001083FA445B05955C@CET_PONXX_FP001>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox