Re: Interval literal not ANSI compliant

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ed Smith <edsmithed(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Interval literal not ANSI compliant
Date: 2004-09-01 23:12:02
Message-ID: 11241.1094080322@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ed Smith <edsmithed(at)yahoo(dot)com> writes:
> The Postgres INTERVAL literal is not compliant with
> the ANSI 2003 SQL Spec.

Yup.

> Are there plans to fix this?

Step right up and have at it. Tom Lockhart was working on migrating the
datetime support to be more like the (IMHO quite bizarre) spec syntax,
but he lost interest and dropped out of the project awhile back.
I don't think any of the rest of the current developers care much about
this point. But we'd accept a patch, as long as it was reasonably
cleanly coded (ie, supportable into the future).

The interval datatype needs love in other ways --- for instance, in my
opinion it really ought to store months/days/seconds internally not
just months/seconds, so as to avoid surprising behavior at DST
transitions. (The existing representation effectively assumes that a
day is always the same number of seconds, which is wrong on DST
transition days.) But this area is not high on the list of interests
of any active PG developers. We need somebody to take ownership of the
problem.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2004-09-01 23:12:22 Re: Can't connect to Windows port + other
Previous Message Anony Mous 2004-09-01 22:58:13 Re: Can't connect to Windows port + other