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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Chris Bitmead <chris(dot)bitmead(at)bigfoot(dot)com>
Cc: pgsql-hackers(at)hub(dot)org
Subject: Re: [HACKERS] Date/Time Flaw in pg_dump ?
Date: 1999-05-11 14:43:56
Message-ID: 13488.926433836@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Chris Bitmead <chris(dot)bitmead(at)bigfoot(dot)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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-05-11 14:56:42 Re: [SQL] plpgsql error
Previous Message Thomas Lockhart 1999-05-11 14:42:13 Re: [HACKERS] Date/Time Flaw in pg_dump ?