Re: text and bytea
От | hernan gonzalez |
---|---|
Тема | Re: text and bytea |
Дата | |
Msg-id | 48692c2d0802220754h5b05974crd3dd7e784d9fe640@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: text and bytea (Martijn van Oosterhout <kleptog@svana.org>) |
Ответы |
Re: text and bytea
|
Список | pgsql-general |
> It seems to me that postgres is trying to do as you suggest: text is > characters and bytea is bytes, like in Java. But the big difference is that, for text type, postgresql knows "this is a text" but doesnt know the encoding, as my example showed. This goes against the concept of "text vs bytes" distintion, which per se is very useful and powerful (specially in this Unicode world) and leads to a dubious/clumsy string api (IMHO, as always). > You don't indicate what > version you are using, this area was rejigged recently. > Sorry, I forget to say that my examples are for last version (8.3) Cheers -- Hernán J. González
В списке pgsql-general по дате отправления: