| От | Tom Lane |
|---|---|
| Тема | Re: JSON fields with backslashes |
| Дата | |
| Msg-id | 1593973.1697234503@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | JSON fields with backslashes (Greig Wise <greigwise@comcast.net>) |
| Список | pgsql-general |
Greig Wise <greigwise@comcast.net> writes: > Hello. I have run into an issue when using the copy command on tables > with json columns where Postgres seems to improperly escape backslashes > under certain conditions thus creating invalid JSON. AFAICS this is COPY's normal behavior: it doubles backslashes in the default format. You could use CSV format, perhaps, but that has its own quoting rules that also mean that what comes out is not going to be json-and-nothing-but. See "File Formats" here: https://www.postgresql.org/docs/current/sql-copy.html regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера