Re: ISO 8601 "Time Intervals" of the "format with time-unit

From: "Ron Mayer" <ron(at)intervideo(dot)com>
To: "Peter Eisentraut" <peter_e(at)gmx(dot)net>, "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: <pgsql-patches(at)postgresql(dot)org>
Subject: Re: ISO 8601 "Time Intervals" of the "format with time-unit
Date: 2003-12-01 21:18:20
Message-ID: POEDIPIPKGJJLDNIEMBEKEEHEDAA.ron@intervideo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy pgsql-general pgsql-hackers pgsql-patches

Peter wrote:
>
> It would be more useful to implement the SQL standard for intervals first
> instead of inventing more nonstandard formats for it.

Much of the postgresql docs talks about ISO-8601 formats, so I would think
of the patch more as a standards-based improvemnt for the current interval
shortand.

For example, where today postgresql accepts "1Y1M" as '1 year 1 minute',
with the patch, the ISO-8601-standard "P1Y1M" would mean '1 year 1 month'.

I would be happy to implement the SQL-standard-intervals as well if
someone can point me to that spec. It's just that the system I worked
with happend to exchange data with ISO8601 time intervals.

Ron Mayer

[Moderators of psql-patches... I first replied to Peter from a
separate (personal) account. I think this reply is now in the
moderation queue). In retrospect I thought it might be better if
the archives had the whole thread from the original email address.
If it's not too late, could you reject my post in the moderation queue?
If not, sorry for the spam.]

In response to

Browse pgsql-advocacy by date

  From Date Subject
Next Message Christopher Browne 2003-12-01 21:25:48 Re: Presentation: Adoption and Trends
Previous Message Jan Wieck 2003-12-01 21:09:39 Re: PostgreSQL, MySQL, etc., was Re: PostgreSQL is much

Browse pgsql-general by date

  From Date Subject
Next Message David Fetter 2003-12-01 21:19:06 Re: Equivalent to DBMS_JOB
Previous Message Bruce Momjian 2003-12-01 21:17:29 Re: What is WAL used for?

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-12-01 21:25:03 Heading to Japan
Previous Message Ron Mayer 2003-12-01 20:50:47 Re: ISO 8601 "Time Intervals" of the "format with time-unit deignators"

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-12-01 21:36:06 Re: Numeric version of factorial()
Previous Message Ron Mayer 2003-12-01 20:50:47 Re: ISO 8601 "Time Intervals" of the "format with time-unit deignators"