pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Förster <paul.foerster@gmail.com>
To: Rich Shepard <rshepard@appl-ecosys.com>
Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: Multi-row insert: error at terminal row.
Date: Thu, 29 Oct 2020 17:15:53 +0100
Message-ID: <23EFF7D8-D708-4F5F-826C-A7FB0F7C265A@gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.20.2010290906590.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>

Hi Rich,

> On 29. Oct, 2020, at 17:08, Rich Shepard <rshepard@appl-ecosys.com> wrote:
> 
> On Thu, 29 Oct 2020, Paul Förster wrote:
> 
>>> (2698,'Port of Portland','http://www.portofportland.com',null,'Port','Opportunity',null);
>> the last line has a closing parenthesis missing.
> 
> Paul,
> 
> I see a closing parenthesis immediately in front of the semi-colon and emacs
> shows it matches the opening parenthesis.

I don't know Emacs, I'm a vi guy. ;-)

But I guess that Emacs shows the matching closing bracket at the beginning of the line, which matches that single tuple. But you also need a closing bracket for the set of tuples like this:

insert ...
(
    (v1, v2, v3),
    (v4, v5, v6),
    (v7, v8, v9)    <= this is the bracket pair that Emacs shows as matching.
);     <= this is the missing bracket.

Cheers,
Paul




view thread (17+ messages)  latest in thread

Message-ID: <23EFF7D8-D708-4F5F-826C-A7FB0F7C265A@gmail.com>
Permalink:  ../23EFF7D8-D708-4F5F-826C-A7FB0F7C265A@gmail.com/
Also on:    postgresql.org/message-id/23EFF7D8-D708-4F5F-826C-A7FB0F7C265A@gmail.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: paul.foerster@gmail.com, rshepard@appl-ecosys.com
  Subject: Re: Multi-row insert: error at terminal row.
  In-Reply-To: <23EFF7D8-D708-4F5F-826C-A7FB0F7C265A@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>

* 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