Re: [HACKERS] Date/Time Flaw in pg_dump ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Date/Time Flaw in pg_dump ?
Дата
Msg-id 13488.926433836@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Date/Time Flaw in pg_dump ?  (Chris Bitmead <chris.bitmead@bigfoot.com>)
Список pgsql-hackers
Chris Bitmead <chris.bitmead@bigfoot.com> writes:
> In their words, the way Postgres works is broken :-(

Thomas will have to provide the detailed response to this, but as far
as I've seen there is nothing "broken" about Postgres' handling of
timezones.  You're assuming that portability of dump scripts across
locales is more important than showing dates in the style(s) people
want to read ... in the real world that isn't so.

> So according to them, the way postgres should work is that it should
> dump times with a time and a specific UT offset, as in 10:00am UT-10 for
> example.

SET DATESTYLE = 'ISO'.

(It might be a worthwhile idea for pg_dump to use this datestyle always,
since indeed some of the other ones are locale-dependent.  Comments?)
        regards, tom lane


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

Предыдущее
От: Thomas Lockhart
Дата:
Сообщение: Re: [HACKERS] Date/Time Flaw in pg_dump ?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: AW: AW: [HACKERS] misc and triggers regression tests failed on 6. 5bet a1