Re: Inserting TEXT with multiple lines - Mailing list pgsql-novice

From Tom Lane
Subject Re: Inserting TEXT with multiple lines
Date
Msg-id 9067.980200856@sss.pgh.pa.us
Whole thread Raw
In response to Inserting TEXT with multiple lines  (Rick Jones <RJones@NAHRO.org>)
List pgsql-novice
Rick Jones <RJones@NAHRO.org> writes:
> In my table there is a "synopsis" field that I want to change so that it
> displays with line breaks (ColdFusion client). Is there an easy way to do
> this? I've tried INSERT. I've used COPY ... FROM with the table and then
> made the modification (using \n for the carriage returns) then tried COPY
> ... TO. When I do that I get the following error:

"\n" should work to represent a newline in COPY data.

> ": can't parse "ne 1, pg_atoi: error in "112

Looks to me like your editor changed all the line endings to \r\n.
Try using a less Windows-ish editor.

            regards, tom lane

pgsql-novice by date:

Previous
From: Karel Zak
Date:
Subject: Re: Re: Interval output format
Next
From: "Andy Arledge"
Date:
Subject: pg_exec : problem