From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kasper Rönning <kasper.ronning@reliabit.fi>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Issue when displaying TIMESTAMPTZ values
Date: Thu, 07 Jun 2012 15:05:05 -0400
Message-ID: <11474.1339095905@sss.pgh.pa.us> (raw)
In-Reply-To: <4FD0F96A.80301@reliabit.fi>
References: <4FD0B1C4.7040307@reliabit.fi>
<8593.1339079838@sss.pgh.pa.us>
<4FD0F96A.80301@reliabit.fi>
=?ISO-8859-1?Q?Kasper_R=F6nning?= <kasper.ronning@reliabit.fi> writes:
> Thank you for the quick reply! I was completely unaware of the old time
> zones of Helsinki! However I'm afraid that the behaviour of Postgresql
> seems plain wrong to me. An example:
> SET TIME ZONE 'Europe/Helsinki';
> DROP TABLE IF EXISTS test1;
> CREATE TABLE test1 (ts TIMESTAMPTZ);
> INSERT INTO test1 VALUES ('0001-01-01 00:00:00');
> SELECT * FROM test1;
> -- ts
> -- ------------------------------
> -- 0001-01-01 00:00:00+01:39:52
> Here I enter a timestamp in Helsinki time zone, and the query result is
> different, even though the time zone is the same.
No, the query result is the same, it's just more fully specified.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, kasper.ronning@reliabit.fi
Subject: Re: Issue when displaying TIMESTAMPTZ values
In-Reply-To: <11474.1339095905@sss.pgh.pa.us>
References: <4FD0B1C4.7040307@reliabit.fi> <8593.1339079838@sss.pgh.pa.us> <4FD0F96A.80301@reliabit.fi> <11474.1339095905@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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