pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feeddate_part bug?
3+ messages / 3 participants
[nested] [flat]
* date_part bug?
@ 2001-03-28 10:51 Salvador Mainé <salvamaine@yahoo.com>
2001-03-28 15:55 ` Re: date_part bug? Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 3+ messages in thread
From: Salvador Mainé @ 2001-03-28 10:51 UTC (permalink / raw)
To: pgsql-admin
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é
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: date_part bug?
2001-03-28 10:51 date_part bug? Salvador Mainé <salvamaine@yahoo.com>
@ 2001-03-28 15:55 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: Tom Lane @ 2001-03-28 15:55 UTC (permalink / raw)
To: salva@ronincoders.com; +Cc: pgsql-admin
Salvador =?iso-8859-1?Q?Main=E9?= <salvamaine@yahoo.com> writes:
> 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
If those dates are daylight-savings transition days where you live,
then this is a known bug (date-to-timestamp conversion is off one hour
on such dates). It's fixed for 7.1.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
* RE: date_part bug?
@ 2001-03-28 12:50 Trewern, Ben <Ben.Trewern@mowlem.com>
0 siblings, 0 replies; 3+ messages in thread
From: Trewern, Ben @ 2001-03-28 12:50 UTC (permalink / raw)
To: 'salva@ronincoders.com' <salva@ronincoders.com>; pgsql-admin
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)
>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2001-03-28 15:55 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-03-28 10:51 date_part bug? Salvador Mainé <salvamaine@yahoo.com>
2001-03-28 15:55 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-03-28 12:50 RE: date_part bug? Trewern, Ben <Ben.Trewern@mowlem.com>
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