| От | Heikki Linnakangas |
|---|---|
| Тема | Re: BUG #3819: UTF8 can't handle \000 |
| Дата | |
| Msg-id | 47666776.1000504@enterprisedb.com обсуждение исходный текст |
| Ответ на | Re: BUG #3819: UTF8 can't handle \000 ("Franklin Schmidt" <fschmidt@gmail.com>) |
| Список | pgsql-bugs |
Franklin Schmidt wrote: > I agree that storing 0x00 in a UTF8 string is weird, but I am > converting a huge database to postgres, and in a huge database, weird > things happen. Using bytea for a text field just because one in a > million records has a 0x00 doesn't make sense to me. I did hack > around it in my conversion code to remove the 0x00 but I expect that > anyone else who tries converting a big database to postgres will also > confront this issue. That's the right solution. If you have 0x00 bytes in your text fields, you're much better off cleaning them away anyway, than trying to work around them. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера