pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #14116: Character with value 0x0a must be escaped. using COPY FROM
2+ messages / 2 participants
[nested] [flat]
* BUG #14116: Character with value 0x0a must be escaped. using COPY FROM
@ 2016-04-27 08:02 mso1830@gmail.com
2016-04-28 09:24 ` Re: BUG #14116: Character with value 0x0a must be escaped. using COPY FROM Francisco Olarte <folarte@peoplecall.com>
0 siblings, 1 reply; 2+ messages in thread
From: mso1830@gmail.com @ 2016-04-27 08:02 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 14116
Logged by: Mohammad alodadi
Email address: mso1830@gmail.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..."
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #14116: Character with value 0x0a must be escaped. using COPY FROM
2016-04-27 08:02 BUG #14116: Character with value 0x0a must be escaped. using COPY FROM mso1830@gmail.com
@ 2016-04-28 09:24 ` Francisco Olarte <folarte@peoplecall.com>
0 siblings, 0 replies; 2+ messages in thread
From: Francisco Olarte @ 2016-04-28 09:24 UTC (permalink / raw)
To: mso1830@gmail.com; +Cc: pgsql-bugs
On Wed, Apr 27, 2016 at 10:02 AM, <mso1830@gmail.com> wrote:
> 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
Seems right, all the json documents I have read say, more or less "A
string is a sequence of Unicode code points wrapped with quotation
marks (U+0022). All characters may be placed within the quotation
marks except for the characters that must be escaped: quotation mark
(U+0022), reverse solidus (U+005C), and the control characters U+0000
to U+001F." ( Copied from
http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf,
which may not be the correct one but seems right for me ).
In fact, noneof the software I presently use to read or generate json
does accept OR PRODUCE unescaped 0x0A. Are you generating the json
manually?
Francisco Olarte.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2016-04-28 09:24 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-04-27 08:02 BUG #14116: Character with value 0x0a must be escaped. using COPY FROM mso1830@gmail.com
2016-04-28 09:24 ` Francisco Olarte <folarte@peoplecall.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox