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: 2007-02-21 09:50:37
Message-ID: 9e4684ce0702210150m35d5626fx9f3d27c1726edc03@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Henrik Zagerholm 2007-02-21 09:59:32 Slow running to_tsvector (tsearch2 in PG 8.2.3)
Previous Message Richard Huxton 2007-02-21 09:36:03 Re: number of tables limited over time (not simultaneous)?