Re: Odd behaviour of timestamptz - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject Re: Odd behaviour of timestamptz
Date
Msg-id 9e4684ce0702210150m35d5626fx9f3d27c1726edc03@mail.gmail.com
Whole thread Raw
In response to Re: Odd behaviour of timestamptz  (Michael Glaesemann <grzm@seespotcode.net>)
List pgsql-general
On 2/21/07, Michael Glaesemann <grzm@seespotcode.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

pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: number of tables limited over time (not simultaneous)?
Next
From: Henrik Zagerholm
Date:
Subject: Slow running to_tsvector (tsearch2 in PG 8.2.3)