pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedpg_dump and timestamp : problem with TimeZone
3+ messages / 1 participants
[nested] [flat]
* pg_dump and timestamp : problem with TimeZone
@ 2001-10-22 11:59 Emmanuel Guyot <emmguyot@wanadoo.fr>
0 siblings, 2 replies; 3+ messages in thread
From: Emmanuel Guyot @ 2001-10-22 11:59 UTC (permalink / raw)
To: pgsql-admin
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pg_dump and timestamp : problem with TimeZone
@ 2001-10-27 11:08 Emmanuel Guyot <emmguyot@wanadoo.fr>
parent: Emmanuel Guyot <emmguyot@wanadoo.fr>
1 sibling, 0 replies; 3+ messages in thread
From: Emmanuel Guyot @ 2001-10-27 11:08 UTC (permalink / raw)
To: pgsql-admin
I hardly believe that noone knows about this problem.
Emmanuel Guyot
"Emmanuel Guyot" <emmguyot@wanadoo.fr> a écrit dans le message de news:
9r11np$mk9$1@news.tht.net...
> 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
>
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pg_dump and timestamp : problem with TimeZone
@ 2001-10-28 13:43 Emmanuel Guyot <emmguyot@wanadoo.fr>
parent: Emmanuel Guyot <emmguyot@wanadoo.fr>
1 sibling, 0 replies; 3+ messages in thread
From: Emmanuel Guyot @ 2001-10-28 13:43 UTC (permalink / raw)
To: pgsql-admin
Well, I've just solved the problem : I don't use anymore the TZ variable.
And now there is no more problem.
Though, I had to modify my programs to force the Timezone at each request.
If you have another workaround, just tell...
Emmanuel Guyot
"Emmanuel Guyot" <emmguyot@wanadoo.fr> a écrit dans le message de news:
9r11np$mk9$1@news.tht.net...
> 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
>
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2001-10-28 13:43 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-10-22 11:59 pg_dump and timestamp : problem with TimeZone Emmanuel Guyot <emmguyot@wanadoo.fr>
2001-10-27 11:08 ` Emmanuel Guyot <emmguyot@wanadoo.fr>
2001-10-28 13:43 ` Emmanuel Guyot <emmguyot@wanadoo.fr>
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