From: | Oliver Elphick <olly(at)lfix(dot)co(dot)uk> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | now() and date_trunc() apparently corrupting data |
Date: | 2003-03-13 22:03:37 |
Message-ID: | 1047593017.15716.359.camel@linda.lfix.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
This is with -configure -enable-integer-datetime in 7.3.2, i386 Linux
platform. Is anyone else seeing this? If so, does it happen without
--enable-integer-datetime?
junk=# \d mt
Table "public.mt"
Column | Type | Modifiers
--------+---------------------+-----------
v | time with time zone |
junk=# delete from mt;
DELETE 4
junk=# insert into mt values ('06:25');
INSERT 12554249 1
junk=# select * from mt;
v
-------------
06:25:00+00
(1 row)
junk=# select * from mt where v < now();
v
-------------
00:00:00+00 <-- data has been changed...
(1 row)
junk=# select * from mt;
v
-------------
00:00:00+00 <-- ...permanently, it seems.
(1 row)
The same seems to happen with date_trunc()
--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Who is like Thee among the gods, O Lord? Who is like
Thee, majestic in holiness, awesome in praises,
working wonders?"
Exodus 15:11
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-03-13 23:06:11 | Re: now() and date_trunc() apparently corrupting data |
Previous Message | Stephan Szabo | 2003-03-13 18:10:03 | Re: Transactions and RowExclusive locks on foreign key tables |