Re: Timestamp/Interval proposals: Part 2

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Hannu Krosing <hannu(at)tm(dot)ee>, Thomas Lockhart <lockhart(at)fourpalms(dot)org>, hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Timestamp/Interval proposals: Part 2
Date: 2002-06-11 16:45:31
Message-ID: 20020611184531.A22388@zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jun 11, 2002 at 09:36:39AM -0700, Josh Berkus wrote:
> Karel,
>
> > The to_interval() will have another (you wanted) behaviour.
>
> Please, please, please do not use to_interval for text formatting of
> intervals. It's very inconsistent with the naming of other conversion
> functions, and will confuse the heck out of a lot of users. As well as
> messing up my databases, which have to_interval as a replacement for the
> problematically named "interval" function.

Yes, agree. It wasn't well-advised.

It will probably to_char() with special 'interval' behaviour or
format marks. But I still don't know how behaviour is right.

--
Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
http://home.zf.jcu.cz/~zakkr/

C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Lockhart 2002-06-11 17:16:42 Re: New string functions; initdb required
Previous Message Josh Berkus 2002-06-11 16:36:39 Re: Timestamp/Interval proposals: Part 2