Re: ascii to character conversion in postgres

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alex Sokoloff <alex_sokoloff(at)yahoo(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org, Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
Subject: Re: ascii to character conversion in postgres
Date: 2000-09-19 15:17:29
Message-ID: 6380.969376649@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alex Sokoloff <alex_sokoloff(at)yahoo(dot)com> writes:
> Of course, if an alias for ichar is carried forward I
> can write code for the current postgres that won't
> break with future releases. I realize that I might end
> up being the only person on the planet who ends up
> using ichar, and that may not be sufficient
> justification for an alias....

Well, we will certainly have chr(), so why not save yourself the
trouble of converting later and make that alias today?

create function chr(int4) returns text as 'ichar'
language 'internal' with (iscachable);

ought to do it in 7.0.*.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2000-09-19 15:26:52 Re: odbc (was: Re: ascii to character conversion in postgres)
Previous Message John McKown 2000-09-19 10:44:00 Possible "enhancement"?