COPY fails on 8.1 with invalid byte sequences in text types
В списке pgsql-bugs по дате отправления:
| От | Jeff Davis |
|---|---|
| Тема | COPY fails on 8.1 with invalid byte sequences in text types |
| Дата | |
| Msg-id | 1161985361.31124.139.camel@dogma.v10.wvs обсуждение |
| Ответы |
Re: COPY fails on 8.1 with invalid byte sequences in text
Re: COPY fails on 8.1 with invalid byte sequences in text |
| Список | pgsql-bugs |
You can insert invalid UTF8 bytes sequences into a TEXT type on an 8.1
installation by doing something like:
INSERT INTO foo(t) VALUES('\xFF');
Then, you can do a:
COPY foo TO '/some/file';
but if you try to do a:
COPY foo FROM '/some/file';
That will fail because /some/file contains invalid UTF8 sequences, even
though it's the same file you copied out.
It seems to be essentially a data corruption issue if applications
insert binary data in text fields using escape sequences. Shouldn't
PostgreSQL reject an invalid UTF8 sequence in any text type?
Regards,
Jeff Davis
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера