Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kYA7c-0001l1-7H for pgsql-general@arkaria.postgresql.org; Thu, 29 Oct 2020 15:45:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kYA7b-0008Dp-5I for pgsql-general@arkaria.postgresql.org; Thu, 29 Oct 2020 15:45:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kYA7a-0008DK-RO for pgsql-general@lists.postgresql.org; Thu, 29 Oct 2020 15:45:50 +0000 Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kYA7Y-0008Mz-Lq for pgsql-general@lists.postgresql.org; Thu, 29 Oct 2020 15:45:49 +0000 Received: by mail-ot1-x335.google.com with SMTP id 32so2684076otm.3 for ; Thu, 29 Oct 2020 08:45:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=iMioj1chrLoR+sKz/izm81ghLg00tYWXtjS89+xR+Cw=; b=R75UBIbQjbO4m4eOM348aTk9LjNWsYOzLD4nYTVSWUyar+o24t/Jrf3yJi1nXXANVr 3biFPOfTKQG89TelCvQQmEyQuu8atpHhmi3RRJ3psHf79SkfcpfwUeZxukMXD6A3zGla W7WCTCN0RDziW7NIb5nyAF3C9ye19cKwPjdVLMA5my1+5InlL/8kjnvKpCiUj7O5G9Eg ui/kwoZ4guKgONoUf0voW1LZ1JeBpZk/EWaMsle5JEm8TCmDm01mLCrRIITbxdYAcgEI NWDejJjB2y9Y3j8DHI0lskBe54Q30CNd5LpqdpRWEWvWzzVyK4+2on6MeFjlZW6nhQmB lcfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=iMioj1chrLoR+sKz/izm81ghLg00tYWXtjS89+xR+Cw=; b=OCUBeaif0NbUrWNd7lVG54etPuoc+5V1hL7m808aAf1VutuPqfOmwzXGZe4Oyd8SOF NSMg9CS5PaHOUNULb35pFiWjTm6/sibGB2RbxLsmo6BP/dn/z8mplao4h5EiRn8ZnbAJ 3UKjXGNK5+qid5+wa5vs7ABkCcunVTXhLLOzHJYtgaKryWCuaMIbIfQEAV8INd+orITh wzUrcYLpmMOE94DBSh51cgn5XMLs+Qky28DiS8oPp5jk0mxTyl7yjD0/L0ViEaZvBi/5 dQGc7fJTu2mvXsd/EtyclAw4S7nBKZ03ggq2uNhY2H4G+niVOfk17EvSuWs6K5TQVuG5 azbg== X-Gm-Message-State: AOAM532REIbHTvbKC8DZ0r0DPsMR8BldLktlO1u1NvVYKgytLoCSMgQo 7QhhPoLk+WObF6O7JOMakl5pNWBicRytJg== X-Google-Smtp-Source: ABdhPJzA9sHXPjWIdD1z3tCiND/nC/n+b1jGmbwgNpy+ocHIl3+hUO1Er35LTpWPAtOv2XOyqFXUug== X-Received: by 2002:a9d:7f8f:: with SMTP id t15mr3560656otp.163.1603986347435; Thu, 29 Oct 2020 08:45:47 -0700 (PDT) Received: from ?IPv6:2601:681:5500:dde0:f0c4:ece7:d309:ed3c? ([2601:681:5500:dde0:f0c4:ece7:d309:ed3c]) by smtp.gmail.com with ESMTPSA id h7sm649121oop.40.2020.10.29.08.45.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Oct 2020 08:45:46 -0700 (PDT) Subject: Re: Multi-row insert: error at terminal row. To: pgsql-general@lists.postgresql.org References: From: Rob Sargent Message-ID: <712da077-deec-6787-2ef0-3e668acfbc17@gmail.com> Date: Thu, 29 Oct 2020 09:45:45 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/29/20 9:43 AM, Rich Shepard wrote: > I'm loading data into tables with the 'insert' statement. There are many > rows containing values and each is bracketed by parentheses except for the > last row. That's terminated with a semicolon, but psql reports an error > there: > > psql:organizations.sql:1926: ERROR:  syntax error at or near ";" > LINE 1925: ...m',null,'Port','Opportunity',null); >                                                 ^ > I'm not seeing why that's an error. All previous rows terminate with a > comma > and I don't know where else to look for the reason. What am I missing > seeing? > > TIA, > > Rich > > > Can we see the last two line of the file (1924, 1925)?