From: | elein <elein(at)varlena(dot)com> |
---|---|
To: | Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Joseph Shraibman <jks(at)selectacast(dot)net>, nolan(at)celery(dot)tssi(dot)com, PostgreSQL General <pgsql-general(at)postgresql(dot)org> |
Subject: | to_char (was Re: fomatting an interval) |
Date: | 2003-05-30 02:22:04 |
Message-ID: | 200305291922.04980.elein@varlena.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I'm sorry I am not up on hackers' discussions on this.
What is to be the alternative to to_char()?
I use to_char very heavily for pretty output of dates and times.
And I know I'm not the only one.
Will there be separate from interval, from timestamp, etc. functions?
Extract is not adequate because then you have to concatenate
it all back together again. It is important to have the formatting
simple and in one function if possible. A lot of notice needs
to be put out before deprecating to_char since it is really
widely used.
(The 7.3.3. bug is unfortunate. But I don't think it is a trigger
to dump the whole function.)
elein
On Wednesday 28 May 2003 03:24, Karel Zak wrote:
> On Mon, May 12, 2003 at 09:09:20PM -0400, Tom Lane wrote:
> > >>> How can I format an interval?
> >
> > Well, there are several possibilities such as to_char() and EXTRACT()
> > ...
>
> I think we will mark to_char(interval) as deprecated function and
> it will removed in some next release. It was already discussed.
>
> Karel
>
> --
> Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
> http://home.zf.jcu.cz/~zakkr/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
>
--
=============================================================
elein(at)varlena(dot)com Database Consulting www.varlena.com
PostgreSQL General Bits http:/www.varlena.com/GeneralBits/
"Free your mind the rest will follow" -- en vogue
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2003-05-30 02:25:16 | Re: Join question |
Previous Message | DeJuan Jackson | 2003-05-30 00:57:39 | Re: CURRENT_DATE and CURRENT_TIME return incorrect values |