pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rich Shepard <rshepard@appl-ecosys.com>
To: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: Multi-row insert: error at terminal row.
Date: Thu, 29 Oct 2020 09:58:06 -0700 (PDT)
Message-ID: <alpine.LNX.2.20.2010290953500.522@salmo.appl-ecosys.com> (raw)
In-Reply-To: <CAKFQuwasu2tSe96=ngfnVoS5+JHxZDC7ZTYpAoQcoSmASvQNgg@mail.gmail.com>
References: <alpine.LNX.2.20.2010290837410.522@salmo.appl-ecosys.com>
	<712da077-deec-6787-2ef0-3e668acfbc17@gmail.com>
	<alpine.LNX.2.20.2010290857010.522@salmo.appl-ecosys.com>
	<6FE34808-28CE-4550-9BC4-A70D91503D2C@gmail.com>
	<alpine.LNX.2.20.2010290906590.522@salmo.appl-ecosys.com>
	<23EFF7D8-D708-4F5F-826C-A7FB0F7C265A@gmail.com>
	<CAKFQuwa_SSVT0ON68jAp83ZJd7SKbXYvVbB1=-C5ThLpyM=7_Q@mail.gmail.com>
	<alpine.LNX.2.20.2010290936050.522@salmo.appl-ecosys.com>
	<CAKFQuwasu2tSe96=ngfnVoS5+JHxZDC7ZTYpAoQcoSmASvQNgg@mail.gmail.com>

On Thu, 29 Oct 2020, David G. Johnston wrote:

> As your general syntax seems correct I would suspect an issue in the data
> values - like having a single quote in an organization name that isn't
> properly escaped (doubled). I'd first make sure insert one record works
> then begin bisecting your values, only inserting subsets at a time, until
> you narrow down the offending record.

David,

I checked and repaired all single apostrophe's with doubled apostrophies.
Postgres found other syntax errors (period rather than comma; missing comma)
but didn't reject single quotes as apostrophes within a string. Also, there
are no strings in this table that would have apostrophes.

Thanks,

Rich





view thread (17+ messages)  latest in thread

Message-ID: <alpine.LNX.2.20.2010290953500.522@salmo.appl-ecosys.com>
Permalink:  ../alpine.LNX.2.20.2010290953500.522@salmo.appl-ecosys.com/
Also on:    postgresql.org/message-id/alpine.LNX.2.20.2010290953500.522@salmo.appl-ecosys.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: rshepard@appl-ecosys.com
  Subject: Re: Multi-row insert: error at terminal row.
  In-Reply-To: <alpine.LNX.2.20.2010290953500.522@salmo.appl-ecosys.com>
  References: <alpine.LNX.2.20.2010290837410.522@salmo.appl-ecosys.com> <712da077-deec-6787-2ef0-3e668acfbc17@gmail.com> <alpine.LNX.2.20.2010290857010.522@salmo.appl-ecosys.com> <6FE34808-28CE-4550-9BC4-A70D91503D2C@gmail.com> <alpine.LNX.2.20.2010290906590.522@salmo.appl-ecosys.com> <23EFF7D8-D708-4F5F-826C-A7FB0F7C265A@gmail.com> <CAKFQuwa_SSVT0ON68jAp83ZJd7SKbXYvVbB1=-C5ThLpyM=7_Q@mail.gmail.com> <alpine.LNX.2.20.2010290936050.522@salmo.appl-ecosys.com> <CAKFQuwasu2tSe96=ngfnVoS5+JHxZDC7ZTYpAoQcoSmASvQNgg@mail.gmail.com> <alpine.LNX.2.20.2010290953500.522@salmo.appl-ecosys.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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