Postgres copy data with \xYY as plain string instead of interpreting as encoded string
-
31-10-2019 - |
Pregunta
I have a log file full of URLs, generated by Bro IDS.
When Bro logs a URL with non-ascii characters in it, it inserts \xYY where YY is the hexadecimal character code. Also, some URLs contain "\x".
Is there a setting or flag I can use with the COPY
or \copy
command to stop postgres from trying to interpret these string sequences and just put them in the text field as is?
No hay solución correcta
Licenciado bajo: CC-BY-SA con atribución
No afiliado a dba.stackexchange