[HACKERS] proposal: to_ascii(bytea)

2008-06-26 Thread Pavel Stehule
Hello, Changes related to convert* functions in postgresql 8.3 has impact on to_ascii function. Before 8.3 I could do: postgres=# select to_ascii(convert('Příliš žlutý kůň' using utf8_to_iso_8859_2),'latin2'); to_ascii -- Prilis zluty kun (1 row) but convert_to function

Re: [HACKERS] proposal: to_ascii(bytea)

2008-06-26 Thread Tom Lane
Pavel Stehule [EMAIL PROTECTED] writes: Changes related to convert* functions in postgresql 8.3 has impact on to_ascii function. ISTM to_ascii has a completely bogus API anyway. What is it doing taking an encoding name as an argument? It should just assume the input text is in the database