Re: Slony-I timezone setting

Поиск
Список
Период
Сортировка
От Pedro Doria Meunier
Тема Re: Slony-I timezone setting
Дата
Msg-id 4A48D276.2090306@netmadeira.com
обсуждение исходный текст
Ответ на Re: Slony-I timezone setting  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Slony-I timezone setting  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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@netmadeira.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-----


В списке pgsql-general по дате отправления:

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: Replication and coding good practices
Следующее
От: Scott Mead
Дата:
Сообщение: Re: masking the code