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 1njTGL-00067f-V8 for pgsql-general@arkaria.postgresql.org; Tue, 26 Apr 2022 22:02:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1njTGK-0006dB-ED for pgsql-general@arkaria.postgresql.org; Tue, 26 Apr 2022 22:02:24 +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 1njTGK-0006d2-1S for pgsql-general@lists.postgresql.org; Tue, 26 Apr 2022 22:02:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njTGH-0002pa-Lz for pgsql-general@lists.postgresql.org; Tue, 26 Apr 2022 22:02:23 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 23QM2IVb273241; Tue, 26 Apr 2022 18:02:18 -0400 From: Tom Lane To: Rich Shepard cc: pgsql-general@lists.postgresql.org Subject: Re: Fresh eyeballs needed: input into error In-reply-to: <457ef4b-792a-9ef-5172-972617d10f7@appl-ecosys.com> References: <457ef4b-792a-9ef-5172-972617d10f7@appl-ecosys.com> Comments: In-reply-to Rich Shepard message dated "Tue, 26 Apr 2022 14:31:36 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <273239.1651010538.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 26 Apr 2022 18:02:18 -0400 Message-ID: <273240.1651010538@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Rich Shepard writes: > I'm getting a syntax error with an input into statement and I cannot see= the > cause. > A MWE and the result (N.B.: line one wrapped for readability; it ends wi= th > 'values'): > insert into people (person_nbr,lname,fname,job_title,company_nbr,loc_nbr= , > loc_phone_ext,direct_phone,direct_fax,cell_phone,email,active,comment) v= alues = > (6000,'No','Name',null,404,1,null,null,null,null,null,null,null); > 2: ERROR: syntax error at end of input > LINE 2: ( > ^ > What do I keep missing? Copying-and-pasting from your mail gets me ERROR: relation "people" does not exist LINE 1: insert into people (person_nbr,lname,fname,job_title,company... ^ so there's nothing wrong with the syntax as-presented. I agree with Adrian's guess about invisible characters in your input file; perhaps a control-D or ASCII NUL would produce that symptom. regards, tom lane