Re: text and bytea
От
Martijn van Oosterhout
Тема
Re: text and bytea
Дата
Msg-id
20080222153350.GE15579@svana.org
Ответ на
text and bytea (hernan gonzalez)
Список
Дерево обсуждения
text and bytea "hernan gonzalez" <hgonzalez@gmail.com>
Re: text and bytea Martijn van Oosterhout <kleptog@svana.org>
Re: text and bytea Alvaro Herrera <alvherre@commandprompt.com>
Re: text and bytea "hernan gonzalez" <hgonzalez@gmail.com>
Re: text and bytea Martijn van Oosterhout <kleptog@svana.org>
Re: text and bytea "hernan gonzalez" <hgonzalez@gmail.com>
Re: text and bytea Gregory Stark <stark@enterprisedb.com>
Re: text and bytea "hernan gonzalez" <hgonzalez@gmail.com>
Re: text and bytea Tom Lane <tgl@sss.pgh.pa.us>
Re: text and bytea "hernan gonzalez" <hgonzalez@gmail.com>
Re: text and bytea Tom Lane <tgl@sss.pgh.pa.us>
Re: text and bytea Bruce Momjian <bruce@momjian.us>
On Thu, Feb 21, 2008 at 02:34:15PM -0200, hernan gonzalez wrote: > (After dealing a while with this, and learning a little, I though of > post this as comment in the docs, but perhaps someone who knows better > can correct or clarify) It seems to me that postgres is trying to do as you suggest: text is characters and bytea is bytes, like in Java. You don't indicate what version you are using, this area was rejigged recently. The most surprising this is that to_ascii won't accept a bytea. TBH the whole to_ascii function seems somewhat half-baked. If what you're trying to do is remove accents, there are perl functions around that do that. Basically, the switch to a different normal form then drop all the accent characters. Essentially, Postgres supports UTF-8, but doesn't understand Unicode characters much at all. Have a nice day, -- Martijn van Oosterhout http://svana.org/kleptog/ > Those who make peaceful revolution impossible will make violent revolution inevitable. > -- John F Kennedy
В списке pgsql-general по дате отправления