From: | Pedro Doria Meunier <pdoria(at)netmadeira(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Postgresql Mailing List <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Slony-I timezone setting |
Date: | 2009-06-29 14:40:54 |
Message-ID: | 4A48D276.2090306@netmadeira.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thanks Tom for your thoughts :)
I tried what you suggested to no avail :-(
Looking at this more closely I see this format when the error arises:
"Mon Jun 29 15:28:10.952151 2009 WEST"
Curiously enough this is what the following command throws out of
/etc/localtime:
zdump -v /etc/localtime | grep 2009
/etc/localtime Sun Mar 29 00:59:59 2009 UTC = Sun Mar 29 00:59:59
2009 WET isdst=0 gmtoff=0
/etc/localtime Sun Mar 29 01:00:00 2009 UTC = Sun Mar 29 02:00:00
2009 WEST isdst=1 gmtoff=3600
/etc/localtime Sun Oct 25 00:59:59 2009 UTC = Sun Oct 25 01:59:59
2009 WEST isdst=1 gmtoff=3600
/etc/localtime Sun Oct 25 01:00:00 2009 UTC = Sun Oct 25 01:00:00
2009 WET isdst=0 gmtoff=0
Even though I'm *sure* that the system's timezone is set to
'Atlantic/Madeira'...
This is what's defined in postgresql.conf
datestyle = 'iso, ymd'
timezone = 'Atlantic/Madeira'
BR,
Pedro Doria Meunier
GSM: +351 96 17 20 188
Skype: pdoriam
Tom Lane wrote:
> Pedro Doria Meunier <pdoria(at)netmadeira(dot)com> writes:
>> When configuring a Slony cluster I get the infamous 'ERROR:
>> invalid input syntax for type timestamp: "Mon Jun 29
>> 13:00:36.628805 2009 WEST"'
>
> You need to make the timezone_abbreviations configuration on the
> slave match that on the master. Alternatively, set datestyle to
> ISO so that a less ambiguous timestamp format is used.
>
> regards, tom lane
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFKSNJs2FH5GXCfxAsRAmCJAKC/WBdfkUmkKUgvBvrSwD0dLOoGmwCcCPb7
UJRvPCTdSKCUkiOoEXf/WmU=
=QEO6
-----END PGP SIGNATURE-----
From | Date | Subject | |
---|---|---|---|
Next Message | Cédric Villemain | 2009-06-29 14:49:40 | Re: pasting into psql garbles text |
Previous Message | David Fetter | 2009-06-29 14:34:49 | Re: Replication and coding good practices |