From: Emmanuel Guyot <emmguyot@wanadoo.fr>
To: pgsql-admin@postgresql.org
Subject: pg_dump and timestamp : problem with TimeZone
Date: Mon, 22 Oct 2001 13:59:41 +0200
Message-ID: <9r11np$mk9$1@news.tht.net> (raw)
I have some columns with timestamp data type wich includes the time zone.
I access these columns using JDBC which handle the time zone automaticly.
Writing and reading data work fine.
Though when I dump the base and restore it, the date are 2 hours later. Is
seems to me that the timezone is lost somewhere.
Here are technical information :
- I've launched my base (7.1.3 with cygwin) while TZ=GMT-2.
- To dump I use : pg_dump.exe -c -F c -Z 9 myDB
- To restore I use : zcat file.gz | pg_restore -v -c -F c -d myDB
For both dump and restore TZ is GMT-2.
Thanks for your hints...
Emmanuel Guyot
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-admin@postgresql.org
Cc: emmguyot@wanadoo.fr
Subject: Re: pg_dump and timestamp : problem with TimeZone
In-Reply-To: <9r11np$mk9$1@news.tht.net>
References: <9r11np$mk9$1@news.tht.net>
* 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