Re: Datetime patch

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: greg(at)turnstep(dot)com, pgsql-patches(at)postgresql(dot)org
Subject: Re: Datetime patch
Date: 2003-07-25 19:33:45
Message-ID: 27689.1059161625@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
>> INSERT INTO TIMESTAMP_TBL VALUES ('97/02/10 17:32:01 UTC');
>> + ERROR: Bad timestamp external representation '97/02/10 17:32:01 UTC'

> Again, this one should fail.

It should? I think you're gonna have a lot of unhappy users if there's
no way to persuade Postgres to take that. This is the same point we
were discussing on the phone earlier.

It might be that the cleanest way to do things is to extend the
input-side DateStyle to a three-way switch, "US" (accept mm/dd/yy)
"Euro" (accept dd/mm/yy) and a third case that accepts yy/mm/dd.
But I do not believe we can get away with deciding that common date
formats aren't common.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-07-25 19:46:08 Re: Datetime patch
Previous Message Bruce Momjian 2003-07-25 19:22:46 Re: Datetime patch

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-07-25 19:37:23 Re: pg_dump fix
Previous Message Bruce Momjian 2003-07-25 19:27:10 Re: src/bin/psql/input.c