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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ron Mayer" <ron(at)intervideo(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: ISO 8601 "Time Intervals" of the "format with time-unit deignators"
Date: 2003-09-09 04:19:48
Message-ID: 21793.1063081188@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy pgsql-general pgsql-hackers pgsql-patches

[ backtracking a little ]

"Ron Mayer" <ron(at)intervideo(dot)com> writes:
> Tom wrote:
>> I doubt anyone is using it, because it's completely undocumented.
>> If we're going to support the real ISO spec, I'd suggest ripping
>> out any not-quite-there variant.

> I'm happy to look into it. Rip out completely? Ifdef?

"Rip" was what I had in mind --- the idea is to simplify the code,
which you will surely agree is too complicated as it stands. ifdefs
won't simplify the code or make it more understandable, rather the
reverse.

I have no problem with complex code when it's needed, but in this case
the ptype implementation of almost-ISO notation seems to me to affect
much more of the code than it has any right to on a usefulness basis.

regards, tom lane

In response to

Browse pgsql-advocacy by date

  From Date Subject
Next Message Sean Chittenden 2003-09-09 19:51:36 PostgreSQL in the news...
Previous Message Ron Mayer 2003-09-08 23:46:13 Re: ISO 8601 'Time Intervals' of the 'format with time-unit deignators'

Browse pgsql-general by date

  From Date Subject
Next Message Alex 2003-09-09 05:53:03 Views and Limits
Previous Message Greg Stark 2003-09-09 04:15:59 Another pimple on the type system

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-09-09 04:45:20 Maximum table size
Previous Message Tom Lane 2003-09-09 02:33:35 Re: row level lock and table level locks

Browse pgsql-patches by date

  From Date Subject
Next Message Manfred Koizar 2003-09-09 11:13:45 Re: Minor lmgr code cleanup
Previous Message Ron Mayer 2003-09-08 23:46:13 Re: ISO 8601 'Time Intervals' of the 'format with time-unit deignators'