BUG #14116: Character with value 0x0a must be escaped. using COPY FROM

From: mso1830(at)gmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #14116: Character with value 0x0a must be escaped. using COPY FROM
Date: 2016-04-27 08:02:51
Message-ID: 20160427080251.18208.4233@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14116
Logged by: Mohammad alodadi
Email address: mso1830(at)gmail(dot)com
PostgreSQL version: 9.5.2
Operating system: ubuntu
Description:

I tried to inserte large json rows from text file into postgres DB. however,
there is error message says:
ERROR: invalid input syntax for type json
DETAIL: Character with value 0x0a must be escaped.
CONTEXT: JSON data, line 1: ...at is closer rather than farther from the
HQ?**
COPY comments_full, line 1, column comment:
"{"subreddit":"EliteDangerous","controversiality":0,"author_flair_css_class":null,"body":"**Power
Pla..."

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message jsteffee 2016-04-27 20:24:09 BUG #14117: psql and pg_dump commands should use ENV perl
Previous Message Andres Freund 2016-04-27 03:35:57 Re: [BUGS] Breakage with VACUUM ANALYSE + partitions