Re: [HACKERS] multiline CSV fields - Mailing list pgsql-patches

From Tom Lane
Subject Re: [HACKERS] multiline CSV fields
Date
Msg-id 9988.1102032651@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] multiline CSV fields  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: [HACKERS] multiline CSV fields
List pgsql-patches
Andrew Dunstan <andrew@dunslane.net> writes:
> +         if (!embedded_line_warning  && (c == '\n' || c == '\r') )
> +         {
> +             embedded_line_warning = true;
> +             elog(WARNING,
> +                  "CSV fields with embedded linefeed or carriage return "
> +                  "characters might not be able to be reimported");
> +         }

What about forcibly translating them to the two-character sequences \n
or \r?  Or is that not considered a CSV-compatible representation?

            regards, tom lane

pgsql-patches by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: [HACKERS] multiline CSV fields
Next
From: Andrew Dunstan
Date:
Subject: Re: [HACKERS] multiline CSV fields