Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: ascii to character conversion in postgres - Mailing list pgsql-hackers

From Tom Lane
Subject Re: ascii to character conversion in postgres
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: ascii to character conversion in postgres  (Alex Sokoloff <[email protected]>)
List pgsql-hackers
Alex Sokoloff <[email protected]> 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


pgsql-hackers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: Library versioning
Next
From: Tom Lane
Date:
Subject: Re: odbc (was: Re: ascii to character conversion in postgres)