Re: invalidly encoded strings
| От | Andrew Dunstan |
|---|---|
| Тема | Re: invalidly encoded strings |
| Дата | |
| Msg-id | 46EDCD0F.8080908@dunslane.net обсуждение исходный текст |
| Ответ на | Re: invalidly encoded strings (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: invalidly encoded strings
|
| Список | pgsql-hackers |
Tom Lane wrote: > What I think we'd need to have a complete solution is > > convert(text, name) returns bytea > -- convert from DB encoding to arbitrary encoding > > convert(bytea, name, name) returns bytea > -- convert between any two encodings > > convert(bytea, name) returns text > -- convert from arbitrary encoding to DB encoding > > The second and third would need to do a verify step before > converting, of course. > > > Is there any reason these functions shouldn't be marked immutable? Also, I'm wondering if we should give them disambiguating names, rather than call them all convert. cheers andrew
В списке pgsql-hackers по дате отправления: