| From: | Josh Berkus <josh(at)agliodbs(dot)com> |
|---|---|
| To: | Tomasz Myrta <jasiek(at)klaster(dot)net>, Peter Childs <blue(dot)dragon(at)blueyonder(dot)co(dot)uk> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Does anyone use TO_CHAR(INTERVAL)? |
| Date: | 2003-03-26 16:34:31 |
| Message-ID: | 200303260834.31708.josh@agliodbs.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
Tomasz, Peter,
> I already know all of these things (look at thread "Formatting
> intervals" dated on 2003-03-17). I was just thinking about intervals
> idea. Keeping time inside interval is good. Keeping months inside
> interval also looks good, but keeping both of them doesn't make sense.
> It is impossible to use these fields together without referring them to
> some real date.
However illogical the current bahavior may seem, it *is* the SQL92/99
specification, so we're keeping it.
I personally use INTERVAL heavily for calendaring applications. I got into a
discussion with Thomas Lockhart last year about how INTERVAL treats daylight
savings time -- which is seriously problematic from a calendar designer's
perspective -- and was turned down by the core team wanting to change the
behavior.
Regrettably, even though the ANSI committee made a few mistakes with
DATE/TIME, they *are* the ANSI committee and PostgreSQL as a project is very
firmly committed to standards.
--
Josh Berkus
Aglio Database Solutions
San Francisco
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael A Nachbaur | 2003-03-26 16:55:21 | Re: Off topic : world database |
| Previous Message | Stephan Szabo | 2003-03-26 15:52:33 | Re: Complex outer joins? |