Re: Odd behaviour of timestamptz
- From: "hubert depesz lubaczewski" <depesz(at)gmail(dot)com>
- To: "Michael Glaesemann" <grzm(at)seespotcode(dot)net>
- Cc: "Matteo Beccati" <php(at)beccati(dot)com>, "PostgreSQL General" <pgsql-general(at)postgresql(dot)org>
- Subject: Re: Odd behaviour of timestamptz
- Date: Wed, 21 Feb 2007 10:50:37 +0100
- Message-id: <9e4684ce0702210150m35d5626fx9f3d27c1726edc03(at)mail(dot)gmail(dot)com>
On 2/21/07,
Michael Glaesemann <
grzm(at)seespotcode(dot)net> wrote:
I suspect your RPMs build PostgreSQL without --enable-integer-
datetimes. Without this configure flag, timestamps are represented as
floats, with all of the imprecision that implies. See the second note
below the Date/Time Types table:
doesn't seem to be relevant.
i got brand new cvs head (about 40 minutes ago). configured it with:
./configure \
--prefix=/home/pgdba/work \
--with-pgport=5810 \
--with-tcl \
--with-perl \
--with-python \
--enable-integer-datetimes \
--without-krb5 \
--without-pam \
--without-bonjour \
--with-openssl \
--with-readline \
--with-zlib \
--with-gnu-ld
and rerun the test:
# create TABLE test (data timestamptz);
CREATE TABLE
# INSERT into test values ('1910-01-10');
INSERT 0 1
# INSERT into test values ('1990-01-10');
INSERT 0 1
# select * from test;
data
---------------------------
1910-01-10 00:00:00+01:24
1990-01-10 00:00:00+01
(2 rows)
still something's wrong.
depesz
Home |
Main Index |
Thread Index